Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 885dcf64f3 | |||
| 05b398c352 |
@@ -55,13 +55,16 @@ const health = computed(() => {
|
|||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
/* Mirrored side columns (1fr / auto / 1fr) keep the link block dead-
|
/* Both side cells use `flex: 1 1 0` — equal flex weight, basis 0 —
|
||||||
centered no matter what the teleport-slot on the right is rendering
|
so they grow/shrink at the same rate regardless of which one has
|
||||||
for the active view (Gallery: Select, Showcase: Shuffle, others: ∅).
|
content (brand vs. teleport-slot action button). The middle cell
|
||||||
With a plain flex layout the links shifted left as soon as actions
|
is `flex: 0 0 auto` (content width), and because the side cells
|
||||||
appeared. */
|
are symmetric, the middle stays geometrically centered. Earlier
|
||||||
display: grid;
|
attempts: `flex: 1` defaults to basis 0%, which made the centered
|
||||||
grid-template-columns: 1fr auto 1fr;
|
links shift when actions appeared; `grid-template-columns: 1fr
|
||||||
|
auto 1fr` actually means `minmax(auto, 1fr)` so a wide brand
|
||||||
|
pushed the link block off-center on narrow viewports. */
|
||||||
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
padding: 0.75rem 1rem;
|
padding: 0.75rem 1rem;
|
||||||
@@ -93,6 +96,7 @@ const health = computed(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.fc-links {
|
.fc-links {
|
||||||
|
flex: 0 0 auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -119,11 +123,12 @@ const health = computed(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.fc-nav-left {
|
.fc-nav-left {
|
||||||
|
flex: 1 1 0;
|
||||||
|
min-width: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
flex-shrink: 0;
|
|
||||||
justify-self: start;
|
|
||||||
}
|
}
|
||||||
.fc-health {
|
.fc-health {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -131,10 +136,11 @@ const health = computed(() => {
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
.fc-nav-actions {
|
.fc-nav-actions {
|
||||||
|
flex: 1 1 0;
|
||||||
|
min-width: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: flex-end;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
flex-shrink: 0;
|
|
||||||
justify-self: end;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user