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

Result table font size to layout config

parent 1abd6ba9
No related branches found
No related tags found
No related merge requests found
...@@ -45,8 +45,8 @@ const theme = createMuiTheme({ ...@@ -45,8 +45,8 @@ const theme = createMuiTheme({
}, },
MuiTableCell: { MuiTableCell: {
sizeSmall: { sizeSmall: {
paddingTop: 2, paddingTop: 0,
paddingBottom: 2 paddingBottom: 0
} }
} }
} }
......
...@@ -21,6 +21,9 @@ import history from '../../History' ...@@ -21,6 +21,9 @@ import history from '../../History'
const styles = theme => ({ const styles = theme => ({
tableContainer: props => ({ tableContainer: props => ({
overflow: 'auto', overflow: 'auto',
'& td, & th': {
fontSize: props.layoutConfig.tableFontSize
},
[theme.breakpoints.up(props.layoutConfig.hundredPercentHeightBreakPoint)]: { [theme.breakpoints.up(props.layoutConfig.hundredPercentHeightBreakPoint)]: {
height: `calc(100% - ${props.layoutConfig.tabHeight + props.layoutConfig.paginationToolbarHeight + 2}px)` height: `calc(100% - ${props.layoutConfig.tabHeight + props.layoutConfig.paginationToolbarHeight + 2}px)`
}, },
......
...@@ -33,6 +33,7 @@ export const layoutConfig = { ...@@ -33,6 +33,7 @@ export const layoutConfig = {
reducedHeightBreakpoint: 'lg', reducedHeightBreakpoint: 'lg',
tabHeight: 58, tabHeight: 58,
paginationToolbarHeight: 37, paginationToolbarHeight: 37,
tableFontSize: '0.8rem',
topBar: { topBar: {
showLanguageButton: true, showLanguageButton: true,
feedbackLink: 'https://link.webropolsurveys.com/', feedbackLink: 'https://link.webropolsurveys.com/',
......
...@@ -56,7 +56,7 @@ export const INITIAL_STATE = { ...@@ -56,7 +56,7 @@ export const INITIAL_STATE = {
externalLink: false, externalLink: false,
sortValues: true, sortValues: true,
numberedList: false, numberedList: false,
minWidth: 250 minWidth: 200
}, },
{ {
id: 'author', id: 'author',
...@@ -65,7 +65,7 @@ export const INITIAL_STATE = { ...@@ -65,7 +65,7 @@ export const INITIAL_STATE = {
externalLink: false, externalLink: false,
sortValues: true, sortValues: true,
numberedList: false, numberedList: false,
minWidth: 200 minWidth: 150
}, },
{ {
id: 'work', id: 'work',
...@@ -74,7 +74,7 @@ export const INITIAL_STATE = { ...@@ -74,7 +74,7 @@ export const INITIAL_STATE = {
externalLink: false, externalLink: false,
sortValues: true, sortValues: true,
numberedList: false, numberedList: false,
minWidth: 250, minWidth: 200,
priority: 5 priority: 5
}, },
{ {
...@@ -84,7 +84,7 @@ export const INITIAL_STATE = { ...@@ -84,7 +84,7 @@ export const INITIAL_STATE = {
externalLink: false, externalLink: false,
sortValues: true, sortValues: true,
numberedList: false, numberedList: false,
minWidth: 250, minWidth: 180,
priority: 5 priority: 5
}, },
{ {
...@@ -96,7 +96,7 @@ export const INITIAL_STATE = { ...@@ -96,7 +96,7 @@ export const INITIAL_STATE = {
numberedList: false, numberedList: false,
showSource: true, showSource: true,
sourceExternalLink: true, sourceExternalLink: true,
minWidth: 200 minWidth: 150
}, },
{ {
id: 'productionTimespan', id: 'productionTimespan',
...@@ -107,7 +107,7 @@ export const INITIAL_STATE = { ...@@ -107,7 +107,7 @@ export const INITIAL_STATE = {
numberedList: false, numberedList: false,
showSource: true, showSource: true,
sourceExternalLink: true, sourceExternalLink: true,
minWidth: 250 minWidth: 150
}, },
{ {
id: 'lastKnownLocation', id: 'lastKnownLocation',
...@@ -116,7 +116,7 @@ export const INITIAL_STATE = { ...@@ -116,7 +116,7 @@ export const INITIAL_STATE = {
externalLink: false, externalLink: false,
sortValues: true, sortValues: true,
numberedList: false, numberedList: false,
minWidth: 220 minWidth: 160
}, },
{ {
id: 'note', id: 'note',
...@@ -126,7 +126,7 @@ export const INITIAL_STATE = { ...@@ -126,7 +126,7 @@ export const INITIAL_STATE = {
externalLink: false, externalLink: false,
sortValues: true, sortValues: true,
numberedList: false, numberedList: false,
minWidth: 250, minWidth: 220,
collapsedMaxWords: 12 collapsedMaxWords: 12
}, },
{ {
...@@ -145,7 +145,7 @@ export const INITIAL_STATE = { ...@@ -145,7 +145,7 @@ export const INITIAL_STATE = {
externalLink: false, externalLink: false,
sortValues: true, sortValues: true,
numberedList: false, numberedList: false,
minWidth: 450 minWidth: 200
}, },
{ {
id: 'owner', id: 'owner',
...@@ -172,7 +172,7 @@ export const INITIAL_STATE = { ...@@ -172,7 +172,7 @@ export const INITIAL_STATE = {
externalLink: false, externalLink: false,
sortValues: true, sortValues: true,
numberedList: false, numberedList: false,
minWidth: 220 minWidth: 200
}, },
{ {
id: 'transferOfCustodyTimespan', id: 'transferOfCustodyTimespan',
...@@ -181,7 +181,7 @@ export const INITIAL_STATE = { ...@@ -181,7 +181,7 @@ export const INITIAL_STATE = {
externalLink: false, externalLink: false,
sortValues: true, sortValues: true,
numberedList: false, numberedList: false,
minWidth: 210 minWidth: 200
}, },
{ {
id: 'material', id: 'material',
......
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