diff --git a/gallery/assets/css/view-controls.css b/gallery/assets/css/view-controls.css index 11580d8..f2b5c06 100644 --- a/gallery/assets/css/view-controls.css +++ b/gallery/assets/css/view-controls.css @@ -304,10 +304,20 @@ border-radius: 4px !important; } +/* In compact view the thumbnail is hidden, so collapse the link out of the + flex flow and stretch it as an invisible overlay — this keeps the whole + row clickable without the empty link consuming horizontal space. */ +.plot-container.list-compact-view .plot-item { + position: relative !important; +} + .plot-container.list-compact-view .plot-link { - flex: 1 !important; - display: flex !important; - align-items: center !important; + position: absolute !important; + inset: 0 !important; + flex: none !important; + display: block !important; + width: auto !important; + height: auto !important; } .plot-container.list-compact-view .plot-thumbnail {