feat: update toggle components and enhance chatbot layout; upgrade dependencies and improve UI structure

This commit is contained in:
yuanhau 2025-05-13 09:57:48 +08:00
parent 5bf857f3cd
commit 28240b38dc
9 changed files with 212 additions and 29 deletions

View file

@ -288,7 +288,7 @@ watchEffect((cleanupFn) => {
<template>
<div v-if="bootingAnimation">
<div
class="flex flex-col justify-center align-center text-center absolute w-full h-screen inset-0"
class="flex flex-col justify-center align-center text-center absolute w-full h-screen inset-0 overscroll-none"
>
<Progress
v-model="progress"
@ -301,7 +301,7 @@ watchEffect((cleanupFn) => {
</div>
</div>
<div
class="absolute inset-x-0 flex flex-row px-2 py-1 bg-[#7D7C7C]/70 text-white justify-between align-center text-center z-50"
class="absolute inset-x-0 flex flex-row px-2 py-1 bg-[#7D7C7C]/70 text-white justify-between align-center text-center z-50 overscroll-none"
v-else
>
<!--Menu container-->

View file

@ -117,26 +117,28 @@ onMounted(() => {
</div>
<br />
<div class="justify-center align-center text-center w-full flex">
<div class="bg-[#C9C9C9]/60 rounded-xl shadow-lg p-4 m-4 w-1/2 align-center justify-center text-center">
<span class="text-2xl font-bold">Q/A</span>
<Accordion
type="single"
class="align-center justify-center m-auto"
collapsible
:default-value="defaultValue"
<div
class="bg-[#C9C9C9]/60 rounded-xl shadow-lg p-4 m-4 w-1/2 align-center justify-center text-center"
>
<AccordionItem
v-for="item in accordionItems"
:key="item.value"
:value="item.value"
<span class="text-2xl font-bold">Q/A</span>
<Accordion
type="single"
class="align-center justify-center m-auto"
collapsible
:default-value="defaultValue"
>
<AccordionTrigger>{{ item.title }}</AccordionTrigger>
<AccordionContent>
{{ item.content }}
</AccordionContent>
</AccordionItem>
</Accordion>
<AccordionItem
v-for="item in accordionItems"
:key="item.value"
:value="item.value"
>
<AccordionTrigger>{{ item.title }}</AccordionTrigger>
<AccordionContent>
{{ item.content }}
</AccordionContent>
</AccordionItem>
</Accordion>
</div>
</div>
</div>
</div>
</template>