fix: library items not of same size #380

This commit is contained in:
Prayag Prajapati committed 2024-12-07 23:55:45 +05:30
1 parent 000e62873a
commit 1c38893c68
2 files changed
+17 -18

No files matched your search

+3 -2
View File
@@ -1283,8 +1283,9 @@ function Library() {
) : items.data?.TotalRecordCount === 0 ? ( ) : items.data?.TotalRecordCount === 0 ? (
<EmptyNotice <EmptyNotice
extraMsg={ extraMsg={
currentViewType === BaseItemKind.Trailer && currentViewType === BaseItemKind.Trailer
"Install the trailers channel to enhance your movie experience by adding a library of internet trailers." ? "Install the trailers channel to enhance your movie experience by adding a library of internet trailers."
: undefined
} }
/> />
) : currentViewType !== BaseItemKind.Audio ? ( ) : currentViewType !== BaseItemKind.Audio ? (
+14 -16
View File
@@ -18,7 +18,6 @@
&-icon { &-icon {
font-size: 3em; font-size: 3em;
fill: url(#clr-gradient-default) !important; fill: url(#clr-gradient-default) !important;
&-container { &-container {
position: absolute; position: absolute;
top: 0; top: 0;
@@ -33,7 +32,6 @@
} }
} }
} }
.library { .library {
padding-left: 0 !important; padding-left: 0 !important;
padding-right: 0 !important; padding-right: 0 !important;
@@ -42,7 +40,7 @@
flex-direction: column; flex-direction: column;
align-items: stretch; align-items: stretch;
&-grid { &-grid {
--number-of-cols:8; --number-of-cols: 8;
display: grid; display: grid;
grid-template-columns: repeat(var(--number-of-cols), minmax(0, 1fr)); grid-template-columns: repeat(var(--number-of-cols), minmax(0, 1fr));
justify-items: center; justify-items: center;
@@ -85,8 +83,8 @@
} }
&-filter { &-filter {
width: 100%; width: 100%;
justify-content: space-between; justify-content: space-between;
margin: 0 0.5em !important; margin: 0 0.5em !important;
&-container { &-container {
margin-top: 0.75em; margin-top: 0.75em;
width: 22em; width: 22em;
@@ -120,7 +118,6 @@
} }
} }
} }
// Fix card width with virtual rows // Fix card width with virtual rows
.card { .card {
width: 100%; width: 100%;
@@ -128,20 +125,21 @@
margin: 0; margin: 0;
} }
// Layout css for dynamic virtual rows // Layout css for dynamic virtual rows
&-virtual-item{ &-virtual-item {
width: 14%; width: 14%;
flex-basis: 14%; min-width: 0;
height: fit-content; // flex: 0 0 0;
display: inline-flex; height: fit-content;
flex-direction: row; display: inline-flex;
justify-content: center; flex-direction: row;
align-items: center; justify-content: center;
padding: 0.75em; align-items: center;
&-row{ padding: 0.75em;
&-row {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: center;
align-items: center; align-items: center;
justify-content: center;
flex-basis: 14%; flex-basis: 14%;
} }
} }