refactor(StatusBar): improve layout and styling for better user experience
- Removed unnecessary label from character name display for a cleaner look. - Adjusted grid layout and spacing in the StatusBar for enhanced alignment and responsiveness. - Refined padding and gap settings to optimize visual presentation of status elements.
This commit is contained in:
@@ -7,7 +7,6 @@
|
|||||||
<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>
|
|
||||||
<strong class="status-identity__name">{{ characterName }}</strong>
|
<strong class="status-identity__name">{{ characterName }}</strong>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -334,7 +333,7 @@ export default {
|
|||||||
|
|
||||||
.statusbar-main {
|
.statusbar-main {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: minmax(15rem, 1.1fr) minmax(0, 1.5fr) minmax(14rem, 1fr);
|
grid-template-columns: max-content minmax(0, 1fr) max-content;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.85rem 1rem;
|
gap: 0.85rem 1rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -347,7 +346,7 @@ export default {
|
|||||||
.statusbar-section--identity {
|
.statusbar-section--identity {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.7rem;
|
gap: 0.55rem;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -403,28 +402,19 @@ export default {
|
|||||||
.status-identity {
|
.status-identity {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.45rem;
|
|
||||||
min-height: 34px;
|
min-height: 34px;
|
||||||
padding: 0.2rem 0.95rem;
|
padding: 0.2rem 0.8rem;
|
||||||
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);
|
||||||
box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
|
box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
flex: 1 1 auto;
|
flex: 0 1 auto;
|
||||||
}
|
max-width: 18rem;
|
||||||
|
|
||||||
.status-identity__label {
|
|
||||||
font-size: 0.72rem;
|
|
||||||
letter-spacing: 0.08em;
|
|
||||||
text-transform: uppercase;
|
|
||||||
color: #9a7a5f;
|
|
||||||
white-space: nowrap;
|
|
||||||
flex: 0 0 auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-identity__name {
|
.status-identity__name {
|
||||||
font-size: 1rem;
|
font-size: 0.98rem;
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
color: #5f3617;
|
color: #5f3617;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|||||||
Reference in New Issue
Block a user