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({
},
MuiTableCell: {
sizeSmall: {
paddingTop: 2,
paddingBottom: 2
paddingTop: 0,
paddingBottom: 0
}
}
}
......
......@@ -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)`
},
......
......@@ -33,6 +33,7 @@ export const layoutConfig = {
reducedHeightBreakpoint: 'lg',
tabHeight: 58,
paginationToolbarHeight: 37,
tableFontSize: '0.8rem',
topBar: {
showLanguageButton: true,
feedbackLink: 'https://link.webropolsurveys.com/',
......
......@@ -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',
......
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