Skip to content
Snippets Groups Projects
Commit d5816a02 authored by esikkala's avatar esikkala
Browse files

Result table cell: add height prop

parent 5fbf7fcb
No related branches found
No related tags found
No related merge requests found
......@@ -193,7 +193,7 @@ class ResultTable extends React.Component {
const dataCells = this.props.data.properties.map(column => {
const {
id, valueType, makeLink, externalLink, sortValues, sortBy, numberedList, minWidth,
linkAsButton, collapsedMaxWords, sourceExternalLink, renderAsHTML, HTMLParserTask
height, linkAsButton, collapsedMaxWords, sourceExternalLink, renderAsHTML, HTMLParserTask
} = column
let { previewImageHeight } = column
if (screenSize === 'xs' || screenSize === 'sm') {
......@@ -238,6 +238,7 @@ class ResultTable extends React.Component {
sortValues={sortValues}
sortBy={sortBy}
numberedList={numberedList}
height={height}
minWidth={minWidth}
previewImageHeight={previewImageHeight}
container='cell'
......
......@@ -9,12 +9,13 @@ import ImageGallerySRL from '../main_layout/ImageGallerySRL'
const ResultTableCell = props => {
const {
data, tableData, valueType, makeLink, externalLink, sortValues, sortBy, numberedList, minWidth,
container, columnId, expanded, linkAsButton, collapsedMaxWords, showSource,
height, container, columnId, expanded, linkAsButton, collapsedMaxWords, showSource,
sourceExternalLink, renderAsHTML, HTMLParserTask, referencedTerm, previewImageHeight,
onExpandClick, rowId, shortenLabel
} = props
let cellContent = null
const cellStyle = {
...(height && { height }),
...(minWidth && { minWidth })
}
switch (valueType) {
......
......@@ -62,6 +62,7 @@ export const INITIAL_STATE = {
externalLink: false,
sortValues: true,
numberedList: false,
// height: 150,
minWidth: 200
},
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment