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
+19 -20

No files matched your search

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