File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333
3434 <div
3535 class =" w-full h-full flex flex-col"
36- :class =" { 'ml-4': agentStore.isFullScreen }"
3736 >
38- <div class =" flex items-center justify-between border-b border-gray-200 dark:border-gray-700" >
37+ <div
38+ class =" flex items-center justify-between border-b border-gray-200 dark:border-gray-700"
39+ :class =" { 'pl-4': agentStore.isFullScreen }"
40+ >
3941 <div
4042 class =" flex items-center h-[55px]"
4143 >
99101 />
100102
101103 <div
102- class =" w-full mb-2 flex items-center justify-center px-2 bg-transparent relative"
103- :class =" agentStore.isFullScreen ? 'mx-auto' : ''"
104- :style =" { maxWidth: agentStore.isFullScreen ? agentStore.MAX_WIDTH+'px' : '100%' }"
104+ class =" w-full mb-2 flex items-center justify-center px-2 bg-transparent relative translate-x-[-50%] left-1/2"
105+ :style =" {
106+ maxWidth: agentStore.isFullScreen ? agentStore.MAX_WIDTH+'px' : '100%',
107+ transition: `transform ${agentTransitions.TRANSITION_DURATION}ms ease-in-out`
108+ }"
105109 >
106110 <textarea
107111 v-model =" agentStore.userMessageInput"
@@ -193,7 +197,6 @@ const agentStore = useAgentStore();
193197const agentTransitions = useAgentTransitions ();
194198const coreStore = useCoreStore ();
195199const isModeMenuOpen = ref (false );
196-
197200let startX = 0
198201let startWidth = 0
199202
Original file line number Diff line number Diff line change 1212 </div >
1313 <AutoScrollContainer
1414 :enabled =" !showScrollToBottomButton"
15- class =" relative flex flex-col overflow-y-auto"
15+ class =" relative flex flex-col overflow-y-auto translate-x-[-50%] left-1/2 "
1616 ref =" scrollContainer"
1717 :threshold =" 10"
1818 behavior =" smooth"
19- :class =" agentStore.isFullScreen ? 'mx-auto' : ''"
2019 :style =" {
2120 maxWidth: agentStore.isFullScreen ? agentStore.MAX_WIDTH+'px' : '100%',
22- transition: `max-width ${agentTransitions.TRANSITION_DURATION}ms ease-in-out`
21+ transition: `
22+ max-width ${agentTransitions.TRANSITION_DURATION}ms ease-in-out,
23+ transform ${agentTransitions.TRANSITION_DURATION}ms ease-in-out
24+ `
2325 }"
2426 >
2527
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { useAgentStore } from './useAgentStore';
44
55
66export const useAgentTransitions = defineStore ( 'agentTransitions' , ( ) => {
7- const TRANSITION_DURATION = 200 ;
7+ const TRANSITION_DURATION = 300 ;
88
99 const agentStore = useAgentStore ( ) ;
1010 const appRoot = ref < HTMLElement | null > ( null ) ;
You can’t perform that action at this time.
0 commit comments