diff --git a/src/client/components/App.js b/src/client/components/App.js index f9755774c9509ed42bab4af83bbe828ba1a1b802..62ba0261cf85878aabfa55f4332c3f1f0713d1e8 100644 --- a/src/client/components/App.js +++ b/src/client/components/App.js @@ -45,8 +45,8 @@ const theme = createMuiTheme({ }, MuiTableCell: { sizeSmall: { - paddingTop: 2, - paddingBottom: 2 + paddingTop: 0, + paddingBottom: 0 } } } diff --git a/src/client/components/facet_results/ResultTable.js b/src/client/components/facet_results/ResultTable.js index eccdc67cfd3dd471c0915eb7b37a14c4d9a1c14b..2c54c05c9754fd51e8b4d8ce2c9c43c8a5f12637 100644 --- a/src/client/components/facet_results/ResultTable.js +++ b/src/client/components/facet_results/ResultTable.js @@ -21,6 +21,9 @@ import history from '../../History' const styles = theme => ({ tableContainer: props => ({ overflow: 'auto', + '& td, & th': { + fontSize: props.layoutConfig.tableFontSize + }, [theme.breakpoints.up(props.layoutConfig.hundredPercentHeightBreakPoint)]: { height: `calc(100% - ${props.layoutConfig.tabHeight + props.layoutConfig.paginationToolbarHeight + 2}px)` }, diff --git a/src/client/configs/sampo/GeneralConfig.js b/src/client/configs/sampo/GeneralConfig.js index 7c251412cb025d99c1bfa77c599968744fbdf3ef..d042db097c1919b36320bd4f99a16a4b421cc038 100644 --- a/src/client/configs/sampo/GeneralConfig.js +++ b/src/client/configs/sampo/GeneralConfig.js @@ -33,6 +33,7 @@ export const layoutConfig = { reducedHeightBreakpoint: 'lg', tabHeight: 58, paginationToolbarHeight: 37, + tableFontSize: '0.8rem', topBar: { showLanguageButton: true, feedbackLink: 'https://link.webropolsurveys.com/', diff --git a/src/client/reducers/sampo/perspective1.js b/src/client/reducers/sampo/perspective1.js index bbc3cb185c98a8ff488054ee4abb2b4d25526edb..c60b02f5d145fe65ef114559690a99d79c59e80e 100644 --- a/src/client/reducers/sampo/perspective1.js +++ b/src/client/reducers/sampo/perspective1.js @@ -56,7 +56,7 @@ export const INITIAL_STATE = { externalLink: false, sortValues: true, numberedList: false, - minWidth: 250 + minWidth: 200 }, { id: 'author', @@ -65,7 +65,7 @@ export const INITIAL_STATE = { externalLink: false, sortValues: true, numberedList: false, - minWidth: 200 + minWidth: 150 }, { id: 'work', @@ -74,7 +74,7 @@ export const INITIAL_STATE = { externalLink: false, sortValues: true, numberedList: false, - minWidth: 250, + minWidth: 200, priority: 5 }, { @@ -84,7 +84,7 @@ export const INITIAL_STATE = { externalLink: false, sortValues: true, numberedList: false, - minWidth: 250, + minWidth: 180, priority: 5 }, { @@ -96,7 +96,7 @@ export const INITIAL_STATE = { numberedList: false, showSource: true, sourceExternalLink: true, - minWidth: 200 + minWidth: 150 }, { id: 'productionTimespan', @@ -107,7 +107,7 @@ export const INITIAL_STATE = { numberedList: false, showSource: true, sourceExternalLink: true, - minWidth: 250 + minWidth: 150 }, { id: 'lastKnownLocation', @@ -116,7 +116,7 @@ export const INITIAL_STATE = { externalLink: false, sortValues: true, numberedList: false, - minWidth: 220 + minWidth: 160 }, { id: 'note', @@ -126,7 +126,7 @@ export const INITIAL_STATE = { externalLink: false, sortValues: true, numberedList: false, - minWidth: 250, + minWidth: 220, collapsedMaxWords: 12 }, { @@ -145,7 +145,7 @@ export const INITIAL_STATE = { externalLink: false, sortValues: true, numberedList: false, - minWidth: 450 + minWidth: 200 }, { id: 'owner', @@ -172,7 +172,7 @@ export const INITIAL_STATE = { externalLink: false, sortValues: true, numberedList: false, - minWidth: 220 + minWidth: 200 }, { id: 'transferOfCustodyTimespan', @@ -181,7 +181,7 @@ export const INITIAL_STATE = { externalLink: false, sortValues: true, numberedList: false, - minWidth: 210 + minWidth: 200 }, { id: 'material',