refactor(StatusBar, PoliticsView): update UI elements and improve layout

- Modified StatusBar component to enhance character name display with a label suffix for clarity.
- Refactored styles in StatusBar for better alignment and spacing, improving overall visual presentation.
- Removed the PoliticsView hero section to streamline the layout and focus on tab content, enhancing user navigation.
This commit is contained in:
Torsten Schulz (local)
2026-03-30 10:36:55 +02:00
parent c531ae2caf
commit 05b91284fa
2 changed files with 8 additions and 38 deletions

View File

@@ -7,7 +7,7 @@
<img src="/images/icons/falukant/messages24.png" class="menu-icon" /> <img src="/images/icons/falukant/messages24.png" class="menu-icon" />
</div> </div>
<div v-if="characterName" class="status-identity" :title="characterName"> <div v-if="characterName" class="status-identity" :title="characterName">
<span class="status-identity__label">{{ $t('falukant.overview.metadata.name') }}</span> <span class="status-identity__label">{{ $t('falukant.overview.metadata.name') }}:</span>
<strong class="status-identity__name">{{ characterName }}</strong> <strong class="status-identity__name">{{ characterName }}</strong>
</div> </div>
</div> </div>
@@ -401,12 +401,11 @@ export default {
} }
.status-identity { .status-identity {
display: flex; display: inline-flex;
flex-direction: column; align-items: center;
justify-content: center; gap: 0.45rem;
gap: 0.15rem; min-height: 34px;
min-height: 50px; padding: 0.2rem 0.95rem;
padding: 0.45rem 1rem;
border-radius: var(--radius-md); border-radius: var(--radius-md);
background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(248, 241, 231, 0.98) 100%); background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(248, 241, 231, 0.98) 100%);
border: 1px solid rgba(126, 71, 27, 0.16); border: 1px solid rgba(126, 71, 27, 0.16);
@@ -421,6 +420,7 @@ export default {
text-transform: uppercase; text-transform: uppercase;
color: #9a7a5f; color: #9a7a5f;
white-space: nowrap; white-space: nowrap;
flex: 0 0 auto;
} }
.status-identity__name { .status-identity__name {
@@ -430,6 +430,7 @@ export default {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
min-width: 0;
} }
.quick-access { .quick-access {

View File

@@ -2,14 +2,6 @@
<div class="politics-view"> <div class="politics-view">
<StatusBar /> <StatusBar />
<section class="politics-hero surface-card">
<div>
<span class="politics-kicker">Falukant</span>
<h2>{{ $t('falukant.politics.title') }}</h2>
<p>Ämter, Kandidaturen und Wahlen als klare Aufgabenfläche statt als reine Verwaltungstabelle.</p>
</div>
</section>
<SimpleTabs v-model="activeTab" :tabs="tabs" @change="onTabChange" /> <SimpleTabs v-model="activeTab" :tabs="tabs" @change="onTabChange" />
<!-- TabInhalt --> <!-- TabInhalt -->
@@ -363,29 +355,6 @@ export default {
padding-bottom: 24px; padding-bottom: 24px;
} }
.politics-hero {
padding: 24px 26px;
margin-bottom: 16px;
}
.politics-kicker {
display: inline-block;
margin-bottom: 10px;
padding: 4px 10px;
border-radius: 999px;
background: rgba(120, 195, 138, 0.14);
color: #42634e;
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.politics-hero p {
margin: 0;
color: var(--color-text-secondary);
}
.simple-tabs { .simple-tabs {
margin-bottom: 16px; margin-bottom: 16px;
} }