mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-30 01:28:13 +01:00
feat: improve CommandPalette UI layout and enhance MessageContainer styling for better visibility
This commit is contained in:
@@ -68,8 +68,10 @@ const commandPaletteUi = {
|
|||||||
:disabled="loading"
|
:disabled="loading"
|
||||||
>
|
>
|
||||||
<template #trailing>
|
<template #trailing>
|
||||||
<UKbd value="meta" color="info" />
|
<div class="hidden md:flex gap-1">
|
||||||
<UKbd value="enter" color="info" />
|
<UKbd value="meta" color="info" />
|
||||||
|
<UKbd value="enter" color="info" />
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</UButton>
|
</UButton>
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ const formatted = computed(() => useDateFormat(useNow(), 'D MMMM YYYY, HH:mm', {
|
|||||||
{{ t(message.content || '') }}
|
{{ t(message.content || '') }}
|
||||||
</UCard>
|
</UCard>
|
||||||
</div>
|
</div>
|
||||||
<div class="opacity-0 group-hover:opacity-80 duration-500 flex text-xs italic justify-end">
|
<div class="text-muted opacity-0 group-hover:opacity-80 duration-500 flex text-xs italic justify-end">
|
||||||
{{ formatted }}
|
{{ formatted }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -83,7 +83,7 @@ const formatted = computed(() => useDateFormat(useNow(), 'D MMMM YYYY, HH:mm', {
|
|||||||
<span class="md:hidden">Arthur DANJOU</span>
|
<span class="md:hidden">Arthur DANJOU</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="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 ml-12">
|
||||||
{{ formatted }}
|
{{ formatted }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -75,13 +75,8 @@ const getActivity = computed(() => {
|
|||||||
</div>
|
</div>
|
||||||
<div v-if="getActivity" class="space-y-4">
|
<div v-if="getActivity" class="space-y-4">
|
||||||
<div v-if="getActivity" class="prose dark:prose-invert flex items-center gap-2">
|
<div v-if="getActivity" class="prose dark:prose-invert flex items-center gap-2">
|
||||||
<div>
|
|
||||||
{{ isActive ? t('tool.activity.working') : t('tool.activity.idling', {
|
|
||||||
editor: getActivity.name,
|
|
||||||
}) }}
|
|
||||||
</div>
|
|
||||||
<UTooltip :text="isActive ? t('tool.activity.tooltip.online') : t('tool.activity.tooltip.idling')">
|
<UTooltip :text="isActive ? t('tool.activity.tooltip.online') : t('tool.activity.tooltip.idling')">
|
||||||
<div class="relative flex h-3 w-3">
|
<div class="relative flex h-3 w-3 mx-1">
|
||||||
<div
|
<div
|
||||||
v-if="isActive"
|
v-if="isActive"
|
||||||
class="animate-ping absolute inline-flex h-full w-full rounded-full bg-green-500 opacity-75"
|
class="animate-ping absolute inline-flex h-full w-full rounded-full bg-green-500 opacity-75"
|
||||||
@@ -92,6 +87,11 @@ const getActivity = computed(() => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</UTooltip>
|
</UTooltip>
|
||||||
|
<div>
|
||||||
|
{{ isActive ? t('tool.activity.working') : t('tool.activity.idling', {
|
||||||
|
editor: getActivity.name,
|
||||||
|
}) }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ClientOnly>
|
<ClientOnly>
|
||||||
<UCard v-if="getActivity" variant="outline" class="md:max-w-1/2 m-1 shadow-sm" :ui="{ body: 'flex gap-8 items-center' }">
|
<UCard v-if="getActivity" variant="outline" class="md:max-w-1/2 m-1 shadow-sm" :ui="{ body: 'flex gap-8 items-center' }">
|
||||||
@@ -128,15 +128,6 @@ const getActivity = computed(() => {
|
|||||||
</ClientOnly>
|
</ClientOnly>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="flex md:items-start gap-2">
|
<div v-else class="flex md:items-start gap-2">
|
||||||
<i18n-t
|
|
||||||
keypath="tool.activity.offline"
|
|
||||||
tag="p"
|
|
||||||
class="not-prose"
|
|
||||||
>
|
|
||||||
<template #maths>
|
|
||||||
<i>{{ t('maths') }}</i>
|
|
||||||
</template>
|
|
||||||
</i18n-t>
|
|
||||||
<UTooltip :text="t('tool.activity.tooltip.offline')">
|
<UTooltip :text="t('tool.activity.tooltip.offline')">
|
||||||
<div class="relative flex h-3 w-3 mt-2">
|
<div class="relative flex h-3 w-3 mt-2">
|
||||||
<div
|
<div
|
||||||
@@ -144,6 +135,15 @@ const getActivity = computed(() => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</UTooltip>
|
</UTooltip>
|
||||||
|
<i18n-t
|
||||||
|
keypath="tool.activity.offline"
|
||||||
|
tag="p"
|
||||||
|
class="not-prose"
|
||||||
|
>
|
||||||
|
<template #maths>
|
||||||
|
<i>{{ t('tool.activity.maths') }}</i>
|
||||||
|
</template>
|
||||||
|
</i18n-t>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ watch(
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<main class="!max-w-none">
|
<main>
|
||||||
<ChatCommandPalette
|
<ChatCommandPalette
|
||||||
v-motion
|
v-motion
|
||||||
:initial="{
|
:initial="{
|
||||||
|
|||||||
Reference in New Issue
Block a user