Scrollbar fixes

This commit is contained in:
Daniel Lautzenheiser 2023-04-03 14:18:51 -04:00
parent 4704485009
commit 22a1b8d9c0
5 changed files with 30 additions and 4 deletions

View File

@ -50,7 +50,11 @@ const MainView = ({
showLeftNav ? 'w-main left-64' : 'w-full', showLeftNav ? 'w-main left-64' : 'w-full',
!noMargin && 'px-5 py-4', !noMargin && 'px-5 py-4',
noScroll ? 'overflow-hidden' : 'overflow-y-auto', noScroll ? 'overflow-hidden' : 'overflow-y-auto',
'h-main relative', `
h-main
relative
styled-scrollbars
`,
)} )}
> >
{children} {children}

View File

@ -37,6 +37,7 @@ const Modal: FC<ModalProps> = ({ open, children, className, onClose }) => {
items-center items-center
justify-center justify-center
text-center text-center
styled-scrollbars
`, `,
}, },
}} }}

View File

@ -45,7 +45,7 @@ const EditorContent = ({
} else { } else {
return ( return (
<div className="flex justify-center"> <div className="flex justify-center">
<div className="w-editor-only max-w-full">{editor}</div> <div className="w-editor-only max-w-full h-main">{editor}</div>
</div> </div>
); );
} }
@ -162,6 +162,7 @@ const EditorInterface = ({
w-full w-full
overflow-y-auto overflow-y-auto
styled-scrollbars styled-scrollbars
h-main
" "
> >
<EditorControlPane <EditorControlPane
@ -179,7 +180,15 @@ const EditorInterface = ({
const editorLocale = useMemo( const editorLocale = useMemo(
() => ( () => (
<div key={selectedLocale}> <div
key={selectedLocale}
className="
w-full
overflow-y-auto
styled-scrollbars
h-main
"
>
<EditorControlPane <EditorControlPane
collection={collection} collection={collection}
entry={entry} entry={entry}

View File

@ -167,6 +167,7 @@ const MediaLibraryCardGrid: FC<MediaLibraryCardGridProps> = props => {
py-4 py-4
overflow-hidden overflow-hidden
overflow-y-auto overflow-y-auto
styled-scrollbars
" "
style={{ position: 'unset' }} style={{ position: 'unset' }}
> >

View File

@ -101,7 +101,18 @@ const Sidebar: FC<TranslateProps> = ({ t }) => {
)} )}
aria-label="Sidebar" aria-label="Sidebar"
> >
<div className="px-3 py-4 h-full w-full overflow-y-auto bg-white dark:bg-slate-800"> <div
className="
px-3
py-4
h-full
w-full
overflow-y-auto
bg-white
dark:bg-slate-800
styled-scrollbars
"
>
<ul className="space-y-2"> <ul className="space-y-2">
{isSearchEnabled && ( {isSearchEnabled && (
<CollectionSearch <CollectionSearch