Manga page Finished

This commit is contained in:
Aria Moradi
2021-05-27 17:13:22 +04:30
parent c17e3bd04f
commit 5c7123a997
29 changed files with 1857 additions and 103 deletions

View File

@@ -26,7 +26,7 @@ const useStyles = makeStyles((theme: Theme) => ({
chapters: {
listStyle: 'none',
padding: 0,
minHeight: '50vh',
minHeight: '200px',
[theme.breakpoints.up('md')]: {
width: '50vw',
height: 'calc(100vh - 64px)',
@@ -98,7 +98,7 @@ export default function Manga() {
<Virtuoso
style={{ // override Virtuoso default values and set them with class
height: 'undefined',
overflowY: 'visible',
overflowY: window.innerWidth < 960 ? 'visible' : 'auto',
}}
className={classes.chapters}
totalCount={chapters.length}

View File

@@ -34,7 +34,7 @@ function groupByLang(sources: ISource[]) {
return result;
}
export default function Sources() {
export default function MangaSources() {
const { setTitle, setAction } = useContext(NavbarContext);
const [shownLangs, setShownLangs] = useLocalStorage<string[]>('shownSourceLangs', defualtLangs());