Skip to content

Commit

Permalink
🐛 fix: right sidebar width
Browse files Browse the repository at this point in the history
  • Loading branch information
sanoojes committed Dec 28, 2024
1 parent 600d2d7 commit 276b41c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/user.css

Large diffs are not rendered by default.

48 changes: 21 additions & 27 deletions styles/cards/right-sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@

&,
.main-nowPlayingView-coverArtContainer {
--media-container-height: calc(
(var(--panel-width, 420) * 1px) - 32px
) !important;
--media-container-height: calc((var(--panel-width, var(--right-sidebar-width, 420)) * 1px) - 32px) !important;
}

.main-nowPlayingView-coverArtContainer.hjyiWzPtKHn_5kCe9vyg {
height: var(--height, 60vh) !important;
}
Expand All @@ -41,6 +40,7 @@

.main-nowPlayingView-aboutArtistV2Button {
@include bg-none;

.main-nowPlayingView-aboutArtistV2Bio {
text-wrap: balance;
}
Expand All @@ -54,19 +54,17 @@

/* CanvasNPV */
.E08D6ucrHuPJYzzGO7HG {
-webkit-mask-image: linear-gradient(
to bottom,
rgba(0, 0, 0, 1) 75%,
rgba(0, 0, 0, 0) 100%
);
mask-image: linear-gradient(
to bottom,
rgba(0, 0, 0, 1) 75%,
rgba(0, 0, 0, 0) 100%
);
-webkit-mask-image: linear-gradient(to bottom,
rgba(0, 0, 0, 1) 75%,
rgba(0, 0, 0, 0) 100%);
mask-image: linear-gradient(to bottom,
rgba(0, 0, 0, 1) 75%,
rgba(0, 0, 0, 0) 100%);

&::after {
opacity: 0;
}

&::before {
background: none;
}
Expand All @@ -88,6 +86,7 @@

.ouiL5cH1WduxtprQ0Iig {
aspect-ratio: auto;

video {
height: 100% !important;
}
Expand All @@ -103,6 +102,7 @@
mask-image: $equalizer-svg;
height: 24px;
width: 24px;

img,
svg,
path {
Expand All @@ -125,7 +125,7 @@
background: none;
border: none;
// width: calc(var(--panel-width) * 1px); /* Width is set by default */
height: calc(var(--panel-width) * 1px);
height: calc(var(--panel-width, var(--right-sidebar-width, 420)) * 1px);
width: fit-content;
padding-top: 0px;
background-color: rgba(var(--spice-rgb-sidebar), 0.5);
Expand All @@ -144,12 +144,12 @@

&,
.main-nowPlayingView-coverArtContainer {
--media-container-height: calc(var(--panel-width, 420) * 1px) !important;
--media-container-height: calc(var(--panel-width, var(--right-sidebar-width, 420)) * 1px) !important;
}

/* VideoNPV section */
&:has(.ouiL5cH1WduxtprQ0Iig) {
height: calc((var(--panel-width) * 1px) + 2.5rem);
height: calc((var(--panel-width, var(--right-sidebar-width, 420)) * 1px) + 2.5rem);
}

.E08D6ucrHuPJYzzGO7HG {
Expand All @@ -158,15 +158,9 @@
}

.hjyiWzPtKHn_5kCe9vyg {
--height: calc(
max(
var(--min-height),
min(
var(--max-height),
(0.69 + (var(--panel-width) - 280) * 0.0003571429) * 100vh
)
) - 72px
);
--height: calc(max(var(--min-height),
min(var(--max-height),
(0.69 + (var(--panel-width, var(--right-sidebar-width, 420)) - 280) * 0.0003571429) * 100vh)) - 72px);
}

.E08D6ucrHuPJYzzGO7HG::after {
Expand All @@ -180,7 +174,7 @@

/* CanvasNPV */
&:has(.canvasVideoContainerNPV) {
height: calc((var(--panel-width) * 1px) * 1.75);
height: calc((var(--panel-width, var(--right-sidebar-width, 420)) * 1px) * 1.75);
}

.os-scrollbar-horizontal {
Expand Down Expand Up @@ -238,4 +232,4 @@
right: inherit;
}
}
}
}

0 comments on commit 276b41c

Please sign in to comment.