fix: hover now peeks the preview even while a file is locked; remove the scroll-triggered sticky thumbnail
the scroll-triggered mini-preview from the last commit solved the wrong problem — it never showed in practice (images are generally as tall or taller than the short project texts, so the gap it needed never opened), and wasnt what was actually wanted: the existing left-column preview pane should keep responding to hover even once a file is locked, only reverting to the locked file once the mouse leaves the list. lock now only gates the is-selected styling, the ● locked indicator, and the click-to-navigate semantics on the portfolio index — not what the pane displays.
This commit is contained in:
@@ -251,38 +251,6 @@ body:not(.home) .menu { display: none; }
|
||||
}
|
||||
}
|
||||
|
||||
/* small pinned copy of the locked image — appears at the left edge (same
|
||||
spot the real preview normally sits) once that preview has scrolled out
|
||||
of view, and disappears again once the text next to it runs out. width
|
||||
matches .proj-info so the two columns read as a pair. fixed, not sticky:
|
||||
the file list's own box is only as tall as its own content, not the much
|
||||
taller text next to it, so sticky positioning has nothing to be bounded
|
||||
by — a scroll-driven fixed element sidesteps that entirely. */
|
||||
.proj-sticky {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: calc((100vw - var(--container-width)) / 2);
|
||||
transform: translateY(-50%);
|
||||
width: 18rem;
|
||||
z-index: 5;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: opacity 0.25s ease;
|
||||
pointer-events: none;
|
||||
}
|
||||
.proj-sticky.is-visible { opacity: 1; visibility: visible; }
|
||||
.proj-sticky img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
max-height: 60vh;
|
||||
object-fit: contain;
|
||||
display: block;
|
||||
margin: 0;
|
||||
}
|
||||
@media (max-width: 1099.98px) {
|
||||
.proj-sticky { display: none; }
|
||||
}
|
||||
|
||||
/* prev/next as shell "cd" commands — same vocabulary as the rest of the site */
|
||||
.proj-nav {
|
||||
font-family: var(--font-family-mono);
|
||||
|
||||
Reference in New Issue
Block a user