fix(ui): use the shared settings card on account, authentication, instructions and channels pages
This commit is contained in:
1 parent
899b9ef51f
commit
f63bab8908
14 files changed
+161
-167
No files matched your search
@@ -6,6 +6,7 @@ import { storeToRefs } from "pinia";
|
||||
import PageHeader from "@/base/PageHeader.vue";
|
||||
import { Textarea } from "@/components/ui/textarea";
|
||||
import { resourcesForPage, useSettingsStore } from "@/stores/settings";
|
||||
import ConfigCard from "./ConfigCard.vue";
|
||||
import DraftHint from "./DraftHint.vue";
|
||||
import HistoryLink from "./HistoryLink.vue";
|
||||
|
||||
@@ -32,7 +33,7 @@ const chars = computed(() => soul.value?.text.length ?? 0);
|
||||
{{ catalogError || error }}
|
||||
</p>
|
||||
|
||||
<section v-if="soul" class="rounded-lg border border-border bg-card px-5 py-4">
|
||||
<ConfigCard v-if="soul">
|
||||
<div class="flex justify-end">
|
||||
<DraftHint :kind="KIND" path="text" />
|
||||
</div>
|
||||
@@ -45,6 +46,6 @@ const chars = computed(() => soul.value?.text.length ?? 0);
|
||||
/>
|
||||
<p class="mt-1.5 text-xs text-fg-subtle">
|
||||
{{ chars.toLocaleString() }} chars · ~{{ Math.round(chars / 4).toLocaleString() }} tokens</p>
|
||||
</section>
|
||||
</ConfigCard>
|
||||
</div>
|
||||
</template>
|
||||
Reference in new issue
Block a user