mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Improve smaller screen layouts
This commit is contained in:
parent
0402d1d60d
commit
1acf0b5765
2 changed files with 6 additions and 24 deletions
|
|
@ -934,7 +934,7 @@ function HomeFeedGrid(props: HomeFeedContentProps): JSX.Element {
|
|||
py: '20px',
|
||||
width: '100%',
|
||||
'@mdDown': {
|
||||
px: layout == 'GRID_LAYOUT' ? '20px' : '0px',
|
||||
px: '0px',
|
||||
},
|
||||
}}
|
||||
distribution="start"
|
||||
|
|
@ -1030,6 +1030,9 @@ export function LibraryItemsLayout(
|
|||
height: '100%',
|
||||
width: '100%',
|
||||
paddingX: '40px',
|
||||
'@mdDown': {
|
||||
mx: props.layout == 'GRID_LAYOUT' ? '20px' : '0px',
|
||||
},
|
||||
}}
|
||||
>
|
||||
<Toaster />
|
||||
|
|
|
|||
|
|
@ -38,27 +38,6 @@ export type LibraryHeaderProps = {
|
|||
performMultiSelectAction: (action: BulkAction, labelIds?: string[]) => void
|
||||
}
|
||||
|
||||
export const headerControlWidths = (
|
||||
layout: LayoutType,
|
||||
multiSelectMode: MultiSelectMode
|
||||
) => {
|
||||
return {
|
||||
width: '95%',
|
||||
'@mdDown': {
|
||||
width: '100%',
|
||||
},
|
||||
'@media (min-width: 930px)': {
|
||||
width: '620px',
|
||||
},
|
||||
'@media (min-width: 1280px)': {
|
||||
width: '940px',
|
||||
},
|
||||
'@media (min-width: 1600px)': {
|
||||
width: '1232px',
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
export function LibraryHeader(props: LibraryHeaderProps): JSX.Element {
|
||||
const [small, setSmall] = useState(false)
|
||||
|
||||
|
|
@ -89,8 +68,8 @@ export function LibraryHeader(props: LibraryHeaderProps): JSX.Element {
|
|||
right: '0',
|
||||
},
|
||||
'@xlgDown': {
|
||||
px: props.showFilterMenu ? '0px' : '40px',
|
||||
pr: '0px',
|
||||
px: props.showFilterMenu ? '0px' : '60px',
|
||||
pr: '10px',
|
||||
},
|
||||
}}
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in a new issue