ui: minor changes
This commit is contained in:
7 files changed
+307
-351
No files matched your search
@@ -25,8 +25,9 @@
|
||||
&-container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 8px rgb(0 0 0 / 0.2);
|
||||
border-radius: 5px;
|
||||
border: 1px solid rgb(255 255 255 / 0.1);
|
||||
overflow: hidden;
|
||||
height: auto;
|
||||
z-index: 0;
|
||||
@@ -44,7 +45,7 @@
|
||||
&-icon {
|
||||
font-size: 5.4em !important;
|
||||
&-container {
|
||||
background: linear-gradient(45deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.1));
|
||||
background: linear-gradient(45deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.15));
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
@@ -140,4 +141,27 @@
|
||||
border-radius: 100% !important;
|
||||
}
|
||||
}
|
||||
|
||||
&-progress{
|
||||
width: attr('data-progress');
|
||||
height: 100%;
|
||||
background: white;
|
||||
transition: width $transition-time-default ease-in-out;
|
||||
&-container{
|
||||
$padding: 12px;
|
||||
position: absolute;
|
||||
bottom: $padding;
|
||||
left: $padding;
|
||||
right: $padding;
|
||||
height: 4.5px;
|
||||
background: rgb(255 255 255 / 0.5);
|
||||
backdrop-filter: blur(10px);
|
||||
box-shadow: 0 0 10px rgb(20 20 20 / 0.5);
|
||||
z-index: 1;
|
||||
overflow: hidden;
|
||||
box-sizing: content-box;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -184,6 +184,16 @@ export const Card = ({
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
{item.UserData?.PlaybackPositionTicks > 0 && (
|
||||
<div className="card-progress-container">
|
||||
<div
|
||||
className="card-progress"
|
||||
style={{
|
||||
width: `${item.UserData?.PlayedPercentage}%`,
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
{/*
|
||||
{item.UserData?.PlaybackPositionTicks > 0 && (
|
||||
<LinearProgress
|
||||
|
||||
@@ -42,8 +42,9 @@
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
&-grid {
|
||||
--number-of-cols:8;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(8, minmax(0, 1fr));
|
||||
grid-template-columns: repeat(var(--number-of-cols), minmax(0, 1fr));
|
||||
justify-items: center;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
@@ -158,7 +158,10 @@ const SeriesTitlePage = () => {
|
||||
refetchOnWindowFocus: true,
|
||||
});
|
||||
|
||||
const [currentSeason, setCurrentSeason] = useState(0);
|
||||
const [currentSeason, setCurrentSeason] = useState(() => {
|
||||
const result = sessionStorage.getItem(`season-${item.data?.Id}`);
|
||||
return result ?? 0;
|
||||
});
|
||||
|
||||
const currentSeasonItem = useQuery({
|
||||
queryKey: ["item", id, "season", currentSeason],
|
||||
@@ -232,7 +235,10 @@ const SeriesTitlePage = () => {
|
||||
}, [item.isSuccess]);
|
||||
|
||||
useLayoutEffect(() => {
|
||||
if (seasons.isSuccess) {
|
||||
if (
|
||||
seasons.isSuccess &&
|
||||
!sessionStorage.getItem(`season-${item.data?.Id}`)
|
||||
) {
|
||||
if (
|
||||
seasons.data.TotalRecordCount > 1 &&
|
||||
seasons.data.Items[0].Name.toLowerCase().includes("special")
|
||||
@@ -890,7 +896,13 @@ const SeriesTitlePage = () => {
|
||||
)}
|
||||
<TextField
|
||||
value={currentSeason}
|
||||
onChange={(e) => setCurrentSeason(e.target.value)}
|
||||
onChange={(e) => {
|
||||
setCurrentSeason(e.target.value);
|
||||
sessionStorage.setItem(
|
||||
`season-${item.data?.Id}`,
|
||||
e.target.value,
|
||||
);
|
||||
}}
|
||||
select
|
||||
SelectProps={{
|
||||
MenuProps: {
|
||||
|
||||
+12
-2
@@ -56,16 +56,26 @@ export const theme = createTheme({
|
||||
styleOverrides: {
|
||||
paper: {
|
||||
borderRadius: "10px",
|
||||
// boxShadow: "0 0 5px hsl(273, 100%, 36%)",
|
||||
background: "hsl(256, 100%, 2%, 40%)",
|
||||
backdropFilter: "blur(20px)",
|
||||
// border: "1.8px solid hsl(273, 100%, 36%)",
|
||||
border: "1px solid rgb(255 255 255 / 0.1)",
|
||||
},
|
||||
list: {
|
||||
padding: "8px",
|
||||
},
|
||||
},
|
||||
defaultProps: {
|
||||
disableScrollLock: true,
|
||||
},
|
||||
},
|
||||
MuiMenuItem: {
|
||||
styleOverrides: {
|
||||
root: {
|
||||
borderRadius: "4px",
|
||||
transition: "250ms",
|
||||
},
|
||||
},
|
||||
},
|
||||
MuiDialog: {
|
||||
styleOverrides: {
|
||||
paper: {
|
||||
|
||||
Reference in new issue
Block a user