mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix the grid columns for various sizes
This commit is contained in:
parent
e42f708a84
commit
a3de2c63ef
1 changed files with 3 additions and 7 deletions
|
|
@ -905,19 +905,15 @@ function LibraryItems(props: LibraryItemsProps): JSX.Element {
|
|||
margin: props.layout == 'LIST_LAYOUT' ? '16px -16px' : undefined,
|
||||
borderRadius: props.layout == 'LIST_LAYOUT' ? 0 : undefined,
|
||||
},
|
||||
'@md': {
|
||||
gridTemplateColumns:
|
||||
props.layout == 'LIST_LAYOUT' ? 'none' : '1fr 1fr',
|
||||
},
|
||||
'@lg': {
|
||||
'@media (min-width: 930px)': {
|
||||
gridTemplateColumns:
|
||||
props.layout == 'LIST_LAYOUT' ? 'none' : 'repeat(2, 1fr)',
|
||||
},
|
||||
'@xl': {
|
||||
'@media (min-width: 1280px)': {
|
||||
gridTemplateColumns:
|
||||
props.layout == 'LIST_LAYOUT' ? 'none' : 'repeat(3, 1fr)',
|
||||
},
|
||||
'@xxl': {
|
||||
'@media (min-width: 1600px)': {
|
||||
gridTemplateColumns:
|
||||
props.layout == 'LIST_LAYOUT' ? 'none' : 'repeat(4, 1fr)',
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue