Redesign fixes #14

Merged
robin merged 2 commits from dev into main 2026-08-31 22:27:13 +02:00
2 changed files with 20 additions and 15 deletions
+18 -14
View File
@@ -13,13 +13,6 @@ async function handleLogout() {
router.push('/login')
}
const stampLabel = computed(() => {
if (!authStore.isAuthenticated) return 'offline'
if (listsStore.isSyncing) return 'syncing'
if (listsStore.pendingCount > 0) return `${listsStore.pendingCount} pending`
return 'synced'
})
const stampClass = computed(() => {
if (!authStore.isAuthenticated) return ''
if (listsStore.pendingCount > 0 || listsStore.isSyncing) return 'stamp-pending'
@@ -46,15 +39,17 @@ const stampTitle = computed(() => {
v-if="listsStore.error"
class="stamp stamp-danger"
:title="listsStore.error"
>sync error</span
>
:aria-label="listsStore.error"
role="img"
></span>
<span
v-else
class="stamp"
:class="stampClass"
:title="stampTitle"
>{{ stampLabel }}</span
>
:aria-label="stampTitle"
role="img"
></span>
<button v-if="authStore.isAuthenticated" type="button" class="logout" @click="handleLogout">
Log out
</button>
@@ -83,9 +78,10 @@ const stampTitle = computed(() => {
}
.brand-name {
font-family: var(--font-stamp);
font-size: 0.95rem;
letter-spacing: 0.04em;
font-family: var(--font-display);
font-weight: 600;
font-size: 1rem;
letter-spacing: 0.02em;
}
.brand-seal {
@@ -121,6 +117,14 @@ const stampTitle = computed(() => {
flex-shrink: 0;
}
.stamp-pending {
color: var(--c-warning);
}
.stamp-synced {
color: var(--c-success);
}
.stamp-danger {
color: var(--c-danger);
cursor: help;
+2 -1
View File
@@ -376,8 +376,9 @@ function inviteDetail(invite: Invite): string {
font-size: 0.95rem;
letter-spacing: 0.06em;
color: var(--c-heading);
min-width: 0;
flex: 1 1 auto;
min-width: 0;
max-width: 24ch;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;