fix(ui): prevent dialog close button from shifting down on long titles
Replace float-based header layout with flexbox (align-items: flex-start) so the close button stays pinned top-right regardless of title length. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -34,17 +34,28 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Header: title flush, close button positioned ────────────────────── */
|
/* ── Header: flex row keeps close button pinned top-right ─────────────── */
|
||||||
|
dialog > article > header {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: var(--app-spacing);
|
||||||
|
}
|
||||||
|
|
||||||
|
dialog > article > header > *:first-child {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
dialog > article > header > * {
|
dialog > article > header > * {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
dialog > article > header .close,
|
dialog > article > header .close,
|
||||||
dialog > article > header :is(a, button)[rel="prev"] {
|
dialog > article > header :is(a, button)[rel="prev"] {
|
||||||
|
flex-shrink: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-left: var(--app-spacing);
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
float: right;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Close icon ──────────────────────────────────────────────────────── */
|
/* ── Close icon ──────────────────────────────────────────────────────── */
|
||||||
@@ -57,9 +68,7 @@
|
|||||||
min-height: 2rem;
|
min-height: 2rem;
|
||||||
width: 2rem;
|
width: 2rem;
|
||||||
height: 2rem;
|
height: 2rem;
|
||||||
margin-top: calc(var(--app-spacing) * -0.5);
|
margin: 0;
|
||||||
margin-bottom: var(--app-spacing);
|
|
||||||
margin-left: auto;
|
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: var(--app-border-radius);
|
border-radius: var(--app-border-radius);
|
||||||
background-image: var(--app-icon-close);
|
background-image: var(--app-icon-close);
|
||||||
|
|||||||
Reference in New Issue
Block a user