mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #2256 from omnivore-app/fix/grid-spacing
Fix the grid columns for various sizes
This commit is contained in:
commit
91c0271ea3
2 changed files with 4 additions and 8 deletions
|
|
@ -24,7 +24,7 @@ export function DisplaySettingsModal(
|
|||
css={{
|
||||
width: '345px',
|
||||
padding: '0px',
|
||||
top: '300px',
|
||||
top: '262px',
|
||||
left: 'calc(100% - 250px)',
|
||||
'@lgDown': {
|
||||
top: '300px',
|
||||
|
|
|
|||
|
|
@ -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