fix: library items not of same size #380
This commit is contained in:
2 files changed
+9
-10
No files matched your search
@@ -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 ? (
|
||||||
|
|||||||
@@ -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;
|
||||||
@@ -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;
|
||||||
|
// flex: 0 0 0;
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0.75em;
|
padding: 0.75em;
|
||||||
&-row{
|
&-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%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user