Merge pull request 'Redesign fixes' (#14) from dev into main
This commit was merged in pull request #14.
This commit is contained in:
@@ -13,13 +13,6 @@ async function handleLogout() {
|
|||||||
router.push('/login')
|
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(() => {
|
const stampClass = computed(() => {
|
||||||
if (!authStore.isAuthenticated) return ''
|
if (!authStore.isAuthenticated) return ''
|
||||||
if (listsStore.pendingCount > 0 || listsStore.isSyncing) return 'stamp-pending'
|
if (listsStore.pendingCount > 0 || listsStore.isSyncing) return 'stamp-pending'
|
||||||
@@ -46,15 +39,17 @@ const stampTitle = computed(() => {
|
|||||||
v-if="listsStore.error"
|
v-if="listsStore.error"
|
||||||
class="stamp stamp-danger"
|
class="stamp stamp-danger"
|
||||||
:title="listsStore.error"
|
:title="listsStore.error"
|
||||||
>sync error</span
|
:aria-label="listsStore.error"
|
||||||
>
|
role="img"
|
||||||
|
></span>
|
||||||
<span
|
<span
|
||||||
v-else
|
v-else
|
||||||
class="stamp"
|
class="stamp"
|
||||||
:class="stampClass"
|
:class="stampClass"
|
||||||
:title="stampTitle"
|
:title="stampTitle"
|
||||||
>{{ stampLabel }}</span
|
:aria-label="stampTitle"
|
||||||
>
|
role="img"
|
||||||
|
></span>
|
||||||
<button v-if="authStore.isAuthenticated" type="button" class="logout" @click="handleLogout">
|
<button v-if="authStore.isAuthenticated" type="button" class="logout" @click="handleLogout">
|
||||||
Log out
|
Log out
|
||||||
</button>
|
</button>
|
||||||
@@ -83,9 +78,10 @@ const stampTitle = computed(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.brand-name {
|
.brand-name {
|
||||||
font-family: var(--font-stamp);
|
font-family: var(--font-display);
|
||||||
font-size: 0.95rem;
|
font-weight: 600;
|
||||||
letter-spacing: 0.04em;
|
font-size: 1rem;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand-seal {
|
.brand-seal {
|
||||||
@@ -121,6 +117,14 @@ const stampTitle = computed(() => {
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.stamp-pending {
|
||||||
|
color: var(--c-warning);
|
||||||
|
}
|
||||||
|
|
||||||
|
.stamp-synced {
|
||||||
|
color: var(--c-success);
|
||||||
|
}
|
||||||
|
|
||||||
.stamp-danger {
|
.stamp-danger {
|
||||||
color: var(--c-danger);
|
color: var(--c-danger);
|
||||||
cursor: help;
|
cursor: help;
|
||||||
|
|||||||
@@ -376,8 +376,9 @@ function inviteDetail(invite: Invite): string {
|
|||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
letter-spacing: 0.06em;
|
letter-spacing: 0.06em;
|
||||||
color: var(--c-heading);
|
color: var(--c-heading);
|
||||||
min-width: 0;
|
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
|
min-width: 0;
|
||||||
|
max-width: 24ch;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|||||||
Reference in New Issue
Block a user