@adminforth/agent 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
<!-- in full screen the controls line up with the centered column of the conversation -->
|
|
2
3
|
<div
|
|
3
4
|
ref="headerRef"
|
|
4
5
|
class="af-agent-header flex items-center gap-0.5 h-12 px-2 border-b border-lightNavbarBorder dark:border-darkNavbarBorder"
|
|
6
|
+
:style="agentStore.isFullScreen ? { paddingInline: `max(0.5rem, calc((100% - ${agentStore.MAX_WIDTH}rem) / 2 + 0.5rem))` } : undefined"
|
|
5
7
|
>
|
|
6
8
|
<Button
|
|
7
9
|
variant="ghost"
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
ref="chatSurface"
|
|
15
15
|
id="adminforth-agent-chat-surface"
|
|
16
16
|
class="fixed top-0 right-0 z-40 flex h-screen border-l border-lightNavbarBorder bg-lightNavbar dark:border-darkNavbarBorder dark:bg-darkNavbar"
|
|
17
|
-
:class="[agentStore.isChatOpen ? 'translate-x-0' : 'translate-x-full', !agentStore.isTeleportedToBody ? 'shadow-popover dark:shadow-darkPopover' : '']"
|
|
18
|
-
:style="{ width: agentStore.chatWidth + 'rem' }"
|
|
17
|
+
:class="[agentStore.isChatOpen ? 'translate-x-0' : 'translate-x-full', !agentStore.isTeleportedToBody && !agentStore.isFullScreen ? 'shadow-popover dark:shadow-darkPopover' : '']"
|
|
18
|
+
:style="{ width: agentStore.isFullScreen ? '100%' : agentStore.chatWidth + 'rem' }"
|
|
19
19
|
>
|
|
20
20
|
<div
|
|
21
21
|
v-if="!(coreStore.isMobile || agentStore.isFullScreen)"
|