#38 QA fix: render GetAttachmentForPaste in paste view; dedupe dark-toggle CSS
- renderPaste now looks up the paste's attachment and passes it as 'Attachment' so the paste.html attachment chip/image preview renders - remove duplicated .iconbtn.dark-toggle blocks (3x from stacked branches #127/#128) and duplicate mobile-media variants Verified: go vet + go test pass; live render on :18098 shows attachment-chip + img src=/f/id/name for a png upload (served 200 image/png) and chip-with-filename, no preview, for an html upload.
This commit is contained in:
@@ -211,22 +211,6 @@ body {
|
||||
.iconbtn.dark-toggle .icon-sun { display: inline-block; }
|
||||
.dark .iconbtn.dark-toggle .icon-sun { display: none; }
|
||||
.dark .iconbtn.dark-toggle .icon-moon { display: inline-block; }
|
||||
/* #127: gear highlights like selected nav tabs; dark toggle button */
|
||||
.iconbtn.gear.on { background: var(--accent); color: var(--bg); border-color: var(--accent); }
|
||||
.iconbtn.dark-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; }
|
||||
.iconbtn.dark-toggle svg { width: 22px; height: 22px; }
|
||||
.iconbtn.dark-toggle .icon-moon { display: none; }
|
||||
.iconbtn.dark-toggle .icon-sun { display: inline-block; }
|
||||
.dark .iconbtn.dark-toggle .icon-sun { display: none; }
|
||||
.dark .iconbtn.dark-toggle .icon-moon { display: inline-block; }
|
||||
/* #127: gear highlights like selected nav tabs; dark toggle button */
|
||||
.iconbtn.gear.on { background: var(--accent); color: var(--bg); border-color: var(--accent); }
|
||||
.iconbtn.dark-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; }
|
||||
.iconbtn.dark-toggle svg { width: 22px; height: 22px; }
|
||||
.iconbtn.dark-toggle .icon-moon { display: none; }
|
||||
.iconbtn.dark-toggle .icon-sun { display: inline-block; }
|
||||
.dark .iconbtn.dark-toggle .icon-sun { display: none; }
|
||||
.dark .iconbtn.dark-toggle .icon-moon { display: inline-block; }
|
||||
.settings-head { padding: 12px 18px; border-bottom: 1px solid var(--border); }
|
||||
.settings-head h1 { font-size: 29.2px; font-weight: 600; margin: 0; }
|
||||
.settings-body { padding: 16px 18px; color: var(--muted-fg); font-size: 21.6px; }
|
||||
@@ -507,12 +491,6 @@ a.admin-link:hover { color: var(--fg); text-decoration: underline; }
|
||||
.iconbtn.dark-toggle { padding: 4px 7px; flex-shrink: 0; }
|
||||
.iconbtn.dark-toggle svg { width: 18px; height: 18px; }
|
||||
.iconbtn.dark-toggle span { display: none; }
|
||||
.iconbtn.dark-toggle { padding: 4px 7px; flex-shrink: 0; }
|
||||
.iconbtn.dark-toggle svg { width: 18px; height: 18px; }
|
||||
.iconbtn.dark-toggle span { display: none; }
|
||||
.iconbtn.dark-toggle { padding: 4px 7px; flex-shrink: 0; }
|
||||
.iconbtn.dark-toggle svg { width: 18px; height: 18px; }
|
||||
.iconbtn.dark-toggle span { display: none; }
|
||||
|
||||
/* new paste: stack editor above sidebar, natural page height */
|
||||
.deck {
|
||||
|
||||
Reference in New Issue
Block a user