mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 15:36:18 -05:00
ui: a Back button is a row of one, not a stretched flex child
Reported: the Back button fills the page width on the domain and channel edit pages. It fills it on all nine pages that have one, and this is mine from the last PR. `.wrolpi-stack` is a flex column at `align-items: stretch`, deliberately -- a panel was full-width as a block element and has to stay that way. A BARE button as a direct child of that stack is stretched too, and every page's Back button was one. On the domain, channel and playlist edit pages it also pushed the button beside it onto its own line, where the two had been inline. Wrapping each in a `.wrolpi-button-row` fixes both without touching the stack: the row is the stretched child, and it lays its buttons out at their own width. The three pages that have a second button get one row holding both, which is how they read before. Also the Videos, Archives and Documents select bars, whose Tag/Delete/Invert/ Clear were four touching buttons in a bare div. They are inline elements rather than interpolations, which is the shape the bare-siblings scan does not see. Guarded twice: the row keeps its buttons their own width inside a stack while itself stretching (both halves, since a row that refused to stretch would pass a test that only looked at the button), and every `<BackButton/>` in the app is inside a row. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7741ee1f12
commit
076e982b69
8 changed files with 88 additions and 21 deletions
|
|
@ -209,10 +209,12 @@ export function ChannelEditPage() {
|
|||
const downloadMissingDataLabel = <>Download Missing Data<InfoPopup content={downloadMissingDataInfo}/></>;
|
||||
|
||||
return <>
|
||||
<BackButton/>
|
||||
<Link to={`/videos/channel/${channel.id}/video`}>
|
||||
<Button>Videos</Button>
|
||||
</Link>
|
||||
<div className='wrolpi-button-row'>
|
||||
<BackButton/>
|
||||
<Link to={`/videos/channel/${channel.id}/video`}>
|
||||
<Button>Videos</Button>
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
{channel?.needs_reorganization && (
|
||||
<Message kind='warning' title='File Format Changed'>
|
||||
|
|
@ -419,7 +421,7 @@ export function ChannelNewPage() {
|
|||
}
|
||||
|
||||
return <>
|
||||
<BackButton/>
|
||||
<div className='wrolpi-button-row'><BackButton/></div>
|
||||
|
||||
<Panel>
|
||||
<Header as="h1">New Channel</Header>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue