refactor(operator): group on-call/notifications/profile flush right in topbar

Replace the inert .spacer (flex: 0 0 auto, did nothing) with a real .right
wrapper using margin-left: auto. The on-call indicator, notifications bell,
and UserMenu now form a single right-aligned cluster instead of sitting
loose in the header flex flow.
This commit is contained in:
Ronni Baslund
2026-05-24 16:55:11 +02:00
parent c93865e187
commit 78e15b9a84
+9 -3
View File
@@ -24,8 +24,7 @@ const ENVS = {
<span class="kbd">K</span> <span class="kbd">K</span>
</button> </button>
<span class="spacer" /> <div class="right">
<span class="oncall" :class="{ active: oncall }"> <span class="oncall" :class="{ active: oncall }">
<StatusDot :color="oncall ? 'var(--accent)' : 'var(--text-mute)'" :size="6" :glow="false" /> <StatusDot :color="oncall ? 'var(--accent)' : 'var(--text-mute)'" :size="6" :glow="false" />
<Mono :dim="!oncall">{{ oncall ? 'on-call · Mikkel' : 'no active page' }}</Mono> <Mono :dim="!oncall">{{ oncall ? 'on-call · Mikkel' : 'no active page' }}</Mono>
@@ -37,6 +36,7 @@ const ENVS = {
</button> </button>
<UserMenu /> <UserMenu />
</div>
</header> </header>
</template> </template>
@@ -98,7 +98,13 @@ header {
flex-shrink: 0; flex-shrink: 0;
} }
.spacer { flex: 0 0 auto; } .right {
margin-left: auto;
display: flex;
align-items: center;
gap: 12px;
flex-shrink: 0;
}
.oncall { .oncall {
display: inline-flex; display: inline-flex;