Add extra filters to LibraryPage #176 and use Noto Sans instead of Open Sans

This commit is contained in:
Prayag Prajapati committed 2023-09-26 22:06:41 +05:30
1 parent 0d1b66c8da
commit 4e296bcdb8
7 files changed
+201 -11

No files matched your search

+174
View File
@@ -1146,6 +1146,180 @@ const LibraryView = () => {
</AccordionDetails>
</Accordion>
)}
{!onlyStatusFilterViews.includes(
currentLib.data.Items[0]
.CollectionType,
) && (
<Accordion className="library-filter-accordian">
<AccordionSummary
expandIcon={
<MdiChevronDown />
}
>
<Typography variant="subtitle1">
Features
</Typography>
</AccordionSummary>
<AccordionDetails
style={{
background:
"rgb(0 0 0 / 0.4)",
padding: "0 !important",
}}
>
<FormControlLabel
className="library-filter"
label="Subtitles"
control={
<Checkbox
value={
hasSubtitles
}
onChange={(
e,
) => {
setHasSubtitles(
e
.target
.checked,
);
}}
/>
}
labelPlacement="start"
componentsProps={{
typography:
{
style: {
justifySelf:
"start",
},
},
}}
/>
<FormControlLabel
className="library-filter"
label="Trailer"
control={
<Checkbox
value={
hasTrailer
}
onChange={(
e,
) => {
setHasTrailer(
e
.target
.checked,
);
}}
/>
}
labelPlacement="start"
componentsProps={{
typography:
{
style: {
justifySelf:
"start",
},
},
}}
/>
<FormControlLabel
className="library-filter"
label="Special Features"
control={
<Checkbox
value={
hasSpecialFeature
}
onChange={(
e,
) => {
setHasSpecialFeature(
e
.target
.checked,
);
}}
/>
}
labelPlacement="start"
componentsProps={{
typography:
{
style: {
justifySelf:
"start",
},
},
}}
/>
<FormControlLabel
className="library-filter"
label="Theme Song"
control={
<Checkbox
value={
hasThemeSong
}
onChange={(
e,
) => {
setHasThemeSong(
e
.target
.checked,
);
}}
/>
}
labelPlacement="start"
componentsProps={{
typography:
{
style: {
justifySelf:
"start",
},
},
}}
/>
<FormControlLabel
className="library-filter"
label="Theme Video"
control={
<Checkbox
value={
hasThemeVideo
}
onChange={(
e,
) => {
setHasThemeVideo(
e
.target
.checked,
);
}}
/>
}
labelPlacement="start"
componentsProps={{
typography:
{
style: {
justifySelf:
"start",
},
},
}}
/>
</AccordionDetails>
</Accordion>
)}
</div>
</Grow>
)}
+1
View File
@@ -41,6 +41,7 @@ import { usePlaybackStore } from "../../utils/store/playback";
import { useBackdropStore } from "../../utils/store/backdrop";
import { ActorCard } from "../../components/card/actorCards";
import { SeasonSelectorSkeleton } from "../../components/skeleton/seasonSelector";
import { stagger } from "framer-motion";
function TabPanel(props) {
const { children, value, index, ...other } = props;