update UI
This commit is contained in:
1 parent
0c6f1c0ffc
commit
0c5939ed7a
7 files changed
+218
-61
No files matched your search
@@ -11,6 +11,7 @@ import { config } from '../config';
|
||||
import { useTheme } from '../composables/useTheme';
|
||||
import type { ThemePreference } from '../composables/useTheme';
|
||||
import ThemeToggleButton from '../components/ThemeToggleButton.vue';
|
||||
import LocaleToggleButton from '../components/LocaleToggleButton.vue';
|
||||
import MarketingShell from '../layouts/MarketingShell.vue';
|
||||
import DeleteConfirmDialog from '../components/DeleteConfirmDialog.vue';
|
||||
import GeneralFeedbackDialog from '../components/GeneralFeedbackDialog.vue';
|
||||
@@ -1409,12 +1410,7 @@ onBeforeUnmount(() => {
|
||||
<MarketingShell v-if="!isLoggedIn">
|
||||
<template #tools>
|
||||
<ThemeToggleButton />
|
||||
<select v-model="locale" class="select-field-ds cursor-pointer rounded-full text-xs">
|
||||
<option value="en">English</option>
|
||||
<option value="zh-CN">{{ $t('workspace.lang.zhCN') }}</option>
|
||||
<option value="zh-TW">{{ $t('workspace.lang.zhTW') }}</option>
|
||||
<option value="th">ไทย</option>
|
||||
</select>
|
||||
<LocaleToggleButton />
|
||||
</template>
|
||||
|
||||
<div v-if="isLoading" class="animate-pulse space-y-8">
|
||||
@@ -1866,17 +1862,21 @@ onBeforeUnmount(() => {
|
||||
</div>
|
||||
<div>
|
||||
<label class="mb-2 block text-sm font-medium text-muted">{{ $t('profile.theme') }}</label>
|
||||
<div class="grid grid-cols-3 gap-2">
|
||||
<div
|
||||
class="segment-control segment-control--cols-3 segment-control--md"
|
||||
role="radiogroup"
|
||||
:aria-label="$t('profile.theme')"
|
||||
>
|
||||
<button
|
||||
v-for="item in themeOptions"
|
||||
:key="item.value"
|
||||
type="button"
|
||||
role="radio"
|
||||
:aria-checked="profileUser.theme_preference === item.value"
|
||||
:disabled="!isProfileEditing"
|
||||
class="segment-item"
|
||||
:class="profileUser.theme_preference === item.value ? 'segment-item--active' : ''"
|
||||
@click="profileUser.theme_preference = item.value"
|
||||
class="rounded-xl border px-3 py-3 text-sm font-medium transition-colors"
|
||||
:class="profileUser.theme_preference === item.value
|
||||
? 'border-brand-500 bg-brand-50 text-brand-700'
|
||||
: 'border-default bg-surface text-secondary'"
|
||||
>
|
||||
{{ item.label() }}
|
||||
</button>
|
||||
|
||||
Reference in new issue
Block a user