files: left-align the preview toolbar (#698)

* files: left-align the preview toolbar, Open joins the button row

The modal actions row packs its children to the right, which suits a
confirming button but stranded the preview's toolbar. The toolbar now
fills the row so its buttons read from the left, with Open first in
the same row as Download. On phones the tags selector always takes its
own line instead of squeezing in beside the buttons.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* tags: the add-tag button is violet like every other tag button

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* share: a real button everywhere but the navbar corner

The share trigger was a bare anchor-wrapped glyph, which matched the
navbar's other corner icons but looked out of place beside real buttons
in the file preview toolbar. It is an IconButton by default now; the
navbar keeps the bare glyph via asIcon.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
lrnselfreliance 2026-09-03 16:03:17 -06:00 • committed by GitHub
parent 9b8ebdc9b3
commit 88d5d55283
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 30 additions and 12 deletions

View file

@ -266,6 +266,10 @@ pre.wrap-text {
flex-wrap: wrap;
align-items: center;
gap: 0.5em;
/* Fill the actions row: `.wrolpi-modal-actions` packs its children to the right, which
is where a confirming button belongs but strands this toolbar. At full width the
toolbar's own layout wins and everything reads from the left. */
flex: 1 1 100%;
}
.preview-toolbar-group {
@ -281,6 +285,14 @@ pre.wrap-text {
min-width: 0;
}
/* On a phone the tags selector always gets its own line rather than squeezing in beside
the buttons. 700px is the app's `tablet` breakpoint (`AppMedia` in contexts.js). */
@media (max-width: 699px) {
.preview-toolbar-tags {
flex-basis: 100%;
}
}
/* Caps preview content to fit inside the file-preview Modal.
300px reserves room for pathContent <pre>, Modal.Header, Modal.Actions row,
inner content (e.g. STL dimensions banner), and modal padding.