Skip to content

Commit 1f0a87c

Browse files
committed
style: more readable intro text for InsaneUI
1 parent 9dac613 commit 1f0a87c

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

apps/frontend/app/components/chat/ChatInterface.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -379,18 +379,20 @@ function alertIsStreaming(input: string) {
379379

380380
<div
381381
v-show="!(isFetching && !messages.length)"
382-
:key="chatContext.interfaceSRK.value"
383-
v-motion-pop-visible-once
384-
class="pointer-events-none absolute left-0 z-0 h-screen w-full place-content-center overflow-hidden transition-height"
382+
class="absolute left-0 z-0 h-screen w-full place-content-center overflow-hidden transition-height"
385383
>
386-
<div
384+
<component
385+
:is="chatContext.insaneUI.value ? LiquidGlassDiv : 'div'"
387386
v-if="!messages.length"
388-
class="relative z-2 whitespace-pre-wrap px-2 text-center text-4xl text-gray-400 font-medium tracking-tighter dark:text-gray-500 dark:text-white"
387+
:key="chatContext.interfaceSRK.value"
388+
v-motion-pop-visible-once
389+
class="relative z-2 mx-auto w-fit whitespace-pre-wrap rounded-$radius p-4 text-center text-4xl font-medium tracking-tighter $c-radius=$radius"
390+
:class="chatContext.insaneUI.value ? 'text-shadow-md bg-secondary/20 text-primary-950 dark:(bg-primary/20 text-secondary-50)' : 'text-gray-500 dark:text-gray-400'"
389391
>
390392
<p>
391393
{{ threadIdRef ? $t('chat.interface.sendToStart') : $t('chat.interface.selectOrStart') }}
392394
</p>
393-
</div>
395+
</component>
394396
</div>
395397

396398
<div v-if="messages.length" class="relative z-2 space-y-4">

0 commit comments

Comments
 (0)