Merge sheet tabs and status bar into one row
SheetTabs and StatusBar were two stacked full-width bars, each with its own background/border. Wrapped them in a shared .bottom-bar flex row in App.vue instead: the tab list shrinks and scrolls internally to make room, the status bar is pinned to the right and scrolls internally rather than wrapping, so the combined row stays a single line even at narrow (375px) viewports. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -50,8 +50,10 @@ onBeforeUnmount(() => window.removeEventListener('keydown', onGlobalKeydown));
|
|||||||
<SettingsPanel />
|
<SettingsPanel />
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
<div class="bottom-bar">
|
||||||
<SheetTabs />
|
<SheetTabs />
|
||||||
<StatusBar />
|
<StatusBar />
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="toasts">
|
<div class="toasts">
|
||||||
<div
|
<div
|
||||||
@@ -74,6 +76,12 @@ onBeforeUnmount(() => window.removeEventListener('keydown', onGlobalKeydown));
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
background: var(--bg);
|
background: var(--bg);
|
||||||
}
|
}
|
||||||
|
.bottom-bar {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
background: var(--surface-2);
|
||||||
|
border-top: 1px solid var(--border);
|
||||||
|
}
|
||||||
.workspace {
|
.workspace {
|
||||||
position: relative;
|
position: relative;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|||||||
@@ -86,14 +86,15 @@ function onDrop(i: number) {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
background: var(--surface-2);
|
flex: 1 1 auto;
|
||||||
border-top: 1px solid var(--border);
|
min-width: 60px;
|
||||||
}
|
}
|
||||||
.tab-list {
|
.tab-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 2px;
|
gap: 2px;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
.tab {
|
.tab {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ const fmt = (n: number) =>
|
|||||||
<template>
|
<template>
|
||||||
<div class="status-bar">
|
<div class="status-bar">
|
||||||
<span class="range">{{ store.activeCellName.value }}</span>
|
<span class="range">{{ store.activeCellName.value }}</span>
|
||||||
<span class="spacer" />
|
|
||||||
<span v-if="agg.count > 0" class="metric">Summe <b>{{ fmt(agg.sum) }}</b></span>
|
<span v-if="agg.count > 0" class="metric">Summe <b>{{ fmt(agg.sum) }}</b></span>
|
||||||
<span v-if="agg.count > 0" class="metric">Mittel <b>{{ fmt(agg.avg) }}</b></span>
|
<span v-if="agg.count > 0" class="metric">Mittel <b>{{ fmt(agg.avg) }}</b></span>
|
||||||
<span class="metric">Anzahl <b>{{ agg.count }}</b></span>
|
<span class="metric">Anzahl <b>{{ agg.count }}</b></span>
|
||||||
@@ -21,20 +20,21 @@ const fmt = (n: number) =>
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
/* shares one row with SheetTabs.vue (see App.vue's .bottom-bar) -- pinned to
|
||||||
|
the right, scrolls internally rather than wrapping if it ever runs out of
|
||||||
|
room, so the combined row always stays a single line. */
|
||||||
.status-bar {
|
.status-bar {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-wrap: wrap;
|
flex: 0 1 auto;
|
||||||
gap: 4px 16px;
|
gap: 4px 14px;
|
||||||
padding: 5px 14px;
|
padding: 5px 14px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
background: var(--surface-2);
|
|
||||||
border-top: 1px solid var(--border);
|
|
||||||
color: var(--text-dim);
|
color: var(--text-dim);
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
}
|
white-space: nowrap;
|
||||||
.spacer {
|
overflow-x: auto;
|
||||||
flex: 1;
|
scrollbar-width: thin;
|
||||||
}
|
}
|
||||||
.metric b {
|
.metric b {
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
|
|||||||
Reference in New Issue
Block a user