Fix clientarea AI chat layout
This commit is contained in:
@@ -1,19 +1,25 @@
|
|||||||
<template>
|
<template>
|
||||||
<Section variant="plain" paddingY="md">
|
<Section variant="plain" paddingY="md">
|
||||||
<Stack gap="6">
|
<div class="grid grid-cols-1 lg:grid-cols-[minmax(0,1fr)_420px] gap-6 items-start">
|
||||||
<PageHeader :title="t('aiAssistants.header.title')" />
|
<div class="space-y-6">
|
||||||
|
<PageHeader :title="t('aiAssistants.header.title')" />
|
||||||
|
|
||||||
<Card padding="lg" class="w-full">
|
<Card padding="lg" class="w-full">
|
||||||
<Stack gap="4">
|
<Stack gap="4">
|
||||||
<Stack direction="row" gap="3" align="center">
|
<Stack direction="row" gap="3" align="center">
|
||||||
<IconCircle tone="primary" size="lg">🛰️</IconCircle>
|
<IconCircle tone="primary" size="lg">🛰️</IconCircle>
|
||||||
<div>
|
<div>
|
||||||
<Heading :level="3" weight="semibold">{{ t('aiAssistants.view.agentTitle') }}</Heading>
|
<Heading :level="3" weight="semibold">{{ t('aiAssistants.view.agentTitle') }}</Heading>
|
||||||
<Text tone="muted">{{ t('aiAssistants.view.agentSubtitle') }}</Text>
|
<Text tone="muted">{{ t('aiAssistants.view.agentSubtitle') }}</Text>
|
||||||
</div>
|
</div>
|
||||||
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
</Card>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="bg-base-200 rounded-box p-4 h-[70vh] overflow-y-auto space-y-3">
|
<Card padding="lg" class="w-full flex flex-col min-h-0 lg:sticky lg:top-6 lg:h-[calc(100vh-8rem)]">
|
||||||
|
<Stack gap="4" class="flex-1 min-h-0">
|
||||||
|
<div class="bg-base-200 rounded-box p-4 flex-1 min-h-0 overflow-y-auto space-y-3">
|
||||||
<div
|
<div
|
||||||
v-for="(message, idx) in chat"
|
v-for="(message, idx) in chat"
|
||||||
:key="idx"
|
:key="idx"
|
||||||
@@ -57,7 +63,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Card>
|
</Card>
|
||||||
</Stack>
|
</div>
|
||||||
</Section>
|
</Section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user