fix(library): draw the wall whole and read its time down the right edge
This commit is contained in:
@@ -1249,9 +1249,6 @@ form[data-key='immich-modal'] {
|
||||
It is given the width they would have taken, and it must not shrink, or the
|
||||
scrollbar would measure the window instead of the shelf. */
|
||||
.adm-thumb-gap { flex: 0 0 auto; }
|
||||
/* The wall's stand-in for the rows it is not drawing: a run of cards' worth of
|
||||
height, spanning the whole grid so nothing lands beside it. */
|
||||
.adm-wall-gap { grid-column: 1 / -1; }
|
||||
.adm-thumb {
|
||||
flex: 0 0 132px;
|
||||
margin: 0;
|
||||
@@ -1484,7 +1481,42 @@ form[data-key='immich-modal'] {
|
||||
fewer frames than there are columns is one row, and a stretched row makes every
|
||||
card's border that much taller than the picture inside it. Rows keep the height
|
||||
their own frames give them however few of them there are. */
|
||||
.lib-root .adm-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 6px; overflow-anchor: none; align-content: start; }
|
||||
.lib-root .adm-grid { flex: 1 1 auto; min-height: 0; min-width: 0; overflow-y: auto; padding-right: 6px; overflow-anchor: none; align-content: start; }
|
||||
/* The wall and the rail beside it: the wall is the shelf and takes the room, the
|
||||
rail is the time down its right edge and takes what it needs. The wall's own
|
||||
scrollbar is inside its box, so the rail stands outside the frames rather than
|
||||
over them. */
|
||||
.lib-wall { display: flex; flex: 1 1 auto; min-height: 0; min-width: 0; gap: 6px; }
|
||||
.lib-rail {
|
||||
position: relative;
|
||||
flex: 0 0 auto;
|
||||
width: 86px;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
scrollbar-width: none;
|
||||
padding: 2px 0;
|
||||
border-left: 1px solid var(--border);
|
||||
}
|
||||
.lib-rail::-webkit-scrollbar { display: none; }
|
||||
/* An entry of the rail: the month or the day, said in the dim voice until the eye
|
||||
is in it, and in the accent — with the rule that carries the eye — once it is. */
|
||||
.lib-rail-item {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 3px 8px;
|
||||
border: 0;
|
||||
border-left: 2px solid transparent;
|
||||
background: none;
|
||||
color: var(--text-dim);
|
||||
font: inherit;
|
||||
font-size: 11px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
}
|
||||
.lib-rail-item:hover { color: var(--text); background: var(--bg-sunken); }
|
||||
.lib-rail-item.on { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
|
||||
/* What the thumbnail wall is read through: the selects and the count of what is
|
||||
left. One row above the wall, and it does not scroll with it. */
|
||||
.lib-root .adm-stage > .lib-filters,
|
||||
|
||||
Reference in New Issue
Block a user