mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
fix(gallery): align the gallery shell's right gutter with the top bar (#5623)
This commit is contained in:
@@ -1305,6 +1305,12 @@ defineExpose({
|
||||
--r-shell-strip: calc(var(--r-alpha-strip-w) + var(--r-alpha-strip-gap));
|
||||
/* Where the right-anchored overlays sit: clear of the scrollbar and the inset. */
|
||||
--r-shell-edge-r: calc(var(--r-shell-scrollbar-w, 0px) + var(--r-safe-r));
|
||||
/* The right gutter less the scrollbar it sits beside, so content ends where
|
||||
the top bar and the document-scrolled pages do. */
|
||||
--r-shell-pad-r: max(
|
||||
0px,
|
||||
calc(var(--r-gutter-r) - var(--r-shell-scrollbar-w, 0px))
|
||||
);
|
||||
/* Lets the strip (a sibling) animate against the scroller's scroll. */
|
||||
timeline-scope: --r-shell-scroll;
|
||||
flex: 1;
|
||||
@@ -1354,6 +1360,8 @@ html[data-bp~="sm-and-down"] .r-shell {
|
||||
class name is load-bearing in here. */
|
||||
html[data-bp~="sm-and-down"] .r-shell {
|
||||
--r-list-bleed: var(--r-row-pad);
|
||||
/* The rows bleed by the full gutter, so a narrower pad would overflow it. */
|
||||
--r-shell-pad-r: var(--r-gutter-r);
|
||||
}
|
||||
html[data-bp~="sm-and-down"] .r-shell__list-header {
|
||||
margin-inline: calc(-1 * var(--r-list-bleed, 0px));
|
||||
@@ -1380,7 +1388,7 @@ html[data-bp~="md-and-up"] .r-shell__list-header {
|
||||
/* A stable gutter keeps the row packing from shifting when the content
|
||||
starts or stops overflowing. */
|
||||
scrollbar-gutter: stable;
|
||||
padding: 0 calc(var(--r-gutter-r) + var(--r-shell-strip)) 60px
|
||||
padding: 0 calc(var(--r-shell-pad-r) + var(--r-shell-strip)) 60px
|
||||
var(--r-gutter-l);
|
||||
}
|
||||
|
||||
@@ -1463,7 +1471,7 @@ html[data-bp~="md-and-up"] .r-shell__list-header {
|
||||
}
|
||||
/* Its pinned glass also runs under the strip column, out to the right edge. */
|
||||
.r-shell__list-header::before {
|
||||
right: calc(-1 * (var(--r-gutter-r) + var(--r-shell-strip)));
|
||||
right: calc(-1 * (var(--r-shell-pad-r) + var(--r-shell-strip)));
|
||||
}
|
||||
|
||||
/* The strip overlays the scroller's right gutter from the pinned toolbar's
|
||||
@@ -1529,7 +1537,7 @@ html[data-bp~="md-and-up"] .r-shell__list-header {
|
||||
}
|
||||
/* No strip: line up with the cards' right edge instead. */
|
||||
.r-shell--no-strip .r-shell__back-to-top {
|
||||
right: calc(var(--r-row-pad) + var(--r-shell-edge-r));
|
||||
right: calc(var(--r-shell-scrollbar-w, 0px) + var(--r-shell-pad-r));
|
||||
}
|
||||
html[data-bp~="sm-and-down"] .r-shell__back-to-top {
|
||||
bottom: calc(var(--r-bottom-nav-h) + var(--r-safe-b) + var(--r-space-4));
|
||||
|
||||
Reference in New Issue
Block a user