Fix MangaList Overflow, top-position

This commit is contained in:
2025-06-17 15:40:25 +02:00
parent d785b6e078
commit 6b05c4fb00
4 changed files with 4 additions and 5 deletions

View File

@ -8,8 +8,6 @@
.app-content { .app-content {
position: absolute; position: absolute;
height: calc(100% - 60px);
top: 60px;
width: 100%; width: 100%;
left: 0; left: 0;
} }

View File

@ -53,7 +53,7 @@ export default function MangaList({connected, setShowSearch}: {connected: boolea
} }
return( return(
<Stack direction="row" spacing={1} flexWrap={"wrap"}> <Stack direction="row" spacing={1} flexWrap={"wrap"} sx={{overflowX: 'hidden', overflowY: 'auto' /* Badge overflow */}} paddingTop={"6px" /* Badge overflow */}>
<Badge invisible sx={{margin: "8px !important"}}> <Badge invisible sx={{margin: "8px !important"}}>
<Card onClick={() => setShowSearch(true)} sx={{height:"fit-content",width:"fit-content"}}> <Card onClick={() => setShowSearch(true)} sx={{height:"fit-content",width:"fit-content"}}>
<CardCover sx={{margin:"var(--Card-padding)"}}> <CardCover sx={{margin:"var(--Card-padding)"}}>

View File

@ -1,5 +1,6 @@
.header { .header {
position: static !important; position: sticky !important;
z-index: 1000;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;

View File

@ -7,7 +7,7 @@ import { GitHub } from "@mui/icons-material";
export default function Header({children} : {children? : ReactElement<any, any> | ReactElement<any,any>[] | undefined}) : ReactElement { export default function Header({children} : {children? : ReactElement<any, any> | ReactElement<any,any>[] | undefined}) : ReactElement {
return ( return (
<Sheet className={"header"} sx={{position: "sticky !important", zIndex: 100}}> <Sheet className={"header"}>
<Stack direction={"row"} spacing={2} sx={{width: "100%", alignItems: "center"}}> <Stack direction={"row"} spacing={2} sx={{width: "100%", alignItems: "center"}}>
{children} {children}
<Box sx={{flexGrow: 1}} /> <Box sx={{flexGrow: 1}} />