Open any picture thumbnail in the shared picview

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-03 03:24:39 -08:00
1 parent 1eef797dc0
commit c26759fd88
10 files changed
+495 -254

No files matched your search

+5 -77
View File
@@ -3,6 +3,8 @@
/* The top bar's Notebook button: drawn and lit like the Subagents button. */
.notepad-btn { border-color: var(--rule-2); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
/* `hidden` loses to the display above without this (agent-less sessions hide it). */
.notepad-btn[hidden] { display: none; }
.btn.notepad-btn { padding: 0 8px; align-self: stretch; }
.notepad-btn .notepad-label { font-size: 13px; line-height: 1; }
.notepad-btn .np-band { fill: var(--ink-2); stroke: none; }
@@ -78,22 +80,10 @@
background: var(--accent-soft);
}
/* One thumbnail: the picture is a button that opens the preview, with the
tray's round X in its corner, and the inline delete question or the upload
state laid over it. */
/* One thumbnail: the picture is a button that opens the picview (the shared
.attach-open in shell.css), with the tray's round X in its corner, and the
inline delete question or the upload state laid over it. */
.notepad-thumb.attach-thumb { width: 88px; height: 88px; }
.notepad-thumb-open {
display: block;
width: 100%;
height: 100%;
padding: 0;
border: 0;
background: none;
cursor: zoom-in;
}
.notepad-thumb-open:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.notepad-thumb.is-uploading .notepad-thumb-open,
.notepad-thumb.is-failed .notepad-thumb-open { cursor: default; }
.notepad-thumb .attach-overlay p { margin: 0; padding: 0 4px; }
.notepad-thumb .attach-overlay .btn.tiny { margin: 0; padding: 1px 6px; font-size: 10.5px; }
.notepad-ask {
@@ -102,68 +92,6 @@
}
.notepad-ask-row { display: flex; gap: 4px; }
/* The full-screen preview: the whole viewport, the picture contained in it,
on a near-black backdrop in both themes (a picture is judged against dark,
whatever the page's theme), so its colors are fixed, not tokens. */
.modal.notepad-preview {
inset: 0;
width: 100vw;
height: 100vh;
max-width: none;
max-height: none;
margin: 0;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
color: #f4f1ec;
}
.modal.notepad-preview[open] {
display: grid;
grid-template-columns: 72px minmax(0, 1fr) 72px;
grid-template-rows: minmax(0, 1fr) auto;
}
.modal.notepad-preview::backdrop { background: rgba(8, 8, 8, 0.92); }
.notepad-preview-img {
grid-column: 2;
grid-row: 1;
place-self: center;
max-width: 100%;
max-height: 100%;
object-fit: contain;
padding-top: 24px;
}
.notepad-preview-step {
grid-row: 1;
place-self: center;
width: 44px;
height: 44px;
padding: 0;
border: 1px solid rgba(255, 255, 255, 0.35);
border-radius: 50%;
background: rgba(0, 0, 0, 0.45);
color: #fff;
font: 600 28px/1 var(--sans);
cursor: pointer;
}
.notepad-preview-step.is-prev { grid-column: 1; }
.notepad-preview-step.is-next { grid-column: 3; }
.notepad-preview-step:hover,
.notepad-preview-step:focus-visible { border-color: #fff; background: rgba(255, 255, 255, 0.14); }
.notepad-preview-step[hidden] { display: none; }
.notepad-preview-bar {
grid-column: 1 / -1;
grid-row: 2;
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
padding: 12px 16px 20px;
}
.notepad-preview-count { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.8); }
.btn.notepad-preview-close { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn.notepad-preview-close:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.modal.notepad .modal-actions { flex: none; align-items: center; margin-top: 14px; }
.notepad-status { margin: 0 auto 0 0; min-height: 1.4em; font-size: 12.5px; color: var(--ink-3); }
.notepad-status.is-problem { color: var(--warn); }