mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-14 15:54:03 +01:00
feat: enhance CommandPalette and MessageContainer with improved styling and interactivity; update localization messages for clarity
This commit is contained in:
@@ -152,6 +152,7 @@ const commandPaletteUi = {
|
||||
:icon="dark ? 'i-ph-moon-duotone' : 'i-ph-sun-duotone'"
|
||||
color="neutral"
|
||||
variant="outline"
|
||||
class="cursor-pointer"
|
||||
size="xl"
|
||||
@click.prevent="toggleDark"
|
||||
/>
|
||||
@@ -159,6 +160,7 @@ const commandPaletteUi = {
|
||||
icon="i-ph-translate-duotone"
|
||||
color="neutral"
|
||||
variant="outline"
|
||||
class="cursor-pointer"
|
||||
size="xl"
|
||||
@click.prevent="changeLocale(currentLocale!.code === 'en' ? 'fr' : currentLocale!.code === 'fr' ? 'es' : 'en')"
|
||||
/>
|
||||
|
||||
@@ -28,7 +28,7 @@ const formatted = computed(() => useDateFormat(useNow(), 'D MMMM YYYY, HH:mm', {
|
||||
{{ formatted }}
|
||||
</div>
|
||||
</div>
|
||||
<div v-else class="group space-y-2 duration-200">
|
||||
<div v-else class="group space-y-2 duration-200 relative">
|
||||
<div class="flex flex-col-reverse gap-2 items-start md:flex-row-reverse">
|
||||
<UCard
|
||||
v-if="message.state === ChatState.LOADING && message.fetchStates && message.fetchStates.length > 0"
|
||||
@@ -90,12 +90,12 @@ const formatted = computed(() => useDateFormat(useNow(), 'D MMMM YYYY, HH:mm', {
|
||||
{{ message }}
|
||||
</div>
|
||||
</UCard>
|
||||
<div class="flex items-center gap-2">
|
||||
<UAvatar src="/arthur.webp" size="lg" />
|
||||
<div class="flex items-center gap-2 lg:absolute lg:-left-12">
|
||||
<UAvatar src="/arthur.webp" size="lg" class="shadow-lg" />
|
||||
<span class="md:hidden">Arthur DANJOU</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-muted opacity-0 group-hover:opacity-80 duration-500 flex text-xs italic justify-start ml-12">
|
||||
<div class="text-muted opacity-0 group-hover:opacity-80 duration-500 flex text-xs italic justify-start">
|
||||
{{ formatted }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -107,14 +107,14 @@ const getActivity = computed(() => {
|
||||
{{ getActivity.state!.split(' ').map((word: string) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(' ') }}
|
||||
</div>
|
||||
<div>{{ getActivity.project }}</div>
|
||||
<div class="italic text-xs">
|
||||
{{ getActivity.start.ago }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<template #footer>
|
||||
<div class="flex justify-end text-sm">
|
||||
<i18n-t keypath="tool.activity.started" tag="p">
|
||||
<template #ago>
|
||||
{{ getActivity.start.ago }}
|
||||
</template>
|
||||
<template #date>
|
||||
{{ getActivity.start.formated.date }}
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user