mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-14 18:59:54 +01:00
feat: update CommandPalette styling and remove unused 'uses' translations for improved clarity and organization
This commit is contained in:
@@ -73,7 +73,7 @@ const commandPaletteUi = {
|
||||
:disabled="loading"
|
||||
>
|
||||
<template #trailing>
|
||||
<div class="hidden md:flex gap-1">
|
||||
<div class="hidden md:flex px-2 items-center">
|
||||
<UKbd value="enter" color="info" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -6,7 +6,7 @@ const props = defineProps({
|
||||
},
|
||||
})
|
||||
|
||||
const { t, locale } = useI18n()
|
||||
const { locale } = useI18n()
|
||||
|
||||
const { data: items } = await useAsyncData(`uses-${props.category}`, async () => await queryCollection('uses').where('category', '=', props.category).all())
|
||||
const { data: categoryData } = await useAsyncData(`category-${props.category}`, async () => await queryCollection('usesCategories').where('slug', '=', props.category).first())
|
||||
@@ -14,10 +14,7 @@ const { data: categoryData } = await useAsyncData(`category-${props.category}`,
|
||||
|
||||
<template>
|
||||
<section>
|
||||
<div class="prose dark:prose-invert">
|
||||
<p>{{ t(`uses.${props.category}`) }}</p>
|
||||
</div>
|
||||
<div v-if="items && categoryData" class="space-y-12 mt-4">
|
||||
<div v-if="items && categoryData" class="space-y-4">
|
||||
<USeparator
|
||||
:label="locale === 'en' ? categoryData.name.en : locale === 'es' ? categoryData.name.es : categoryData.name.fr"
|
||||
size="xs"
|
||||
|
||||
Reference in New Issue
Block a user