File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 @click =" toggleMinimize"
1111 ></q-btn >
1212 </div >
13- <div v-else >
13+ <div v-else class = " chat-embed-body " >
1414 <div class =" chat-container" ref =" chatScroll" >
1515 <div class =" chat-messages q-pa-md" >
1616 <q-chat-message
3333 </div >
3434 </div >
3535 <q-separator ></q-separator >
36- <div class =" q-pt-sm q-px-md q-pb-md" >
36+ <div class =" chat-input q-pt-sm q-px-md q-pb-md" >
3737 <q-form @submit =" sendMessage" class =" row items-center" >
3838 <q-input
3939 dense
@@ -158,10 +158,29 @@ body {
158158}
159159
160160.chat-embed {
161- height : 100 % ;
161+ height : 100 vh ;
162162 overflow : hidden ;
163163}
164164
165+ .chat-embed-body {
166+ display : flex ;
167+ flex-direction : column ;
168+ height : 100% ;
169+ }
170+
171+ .chat-container {
172+ flex : 1 1 auto ;
173+ overflow-y : auto ;
174+ min-height : 0 ;
175+ }
176+
177+ .chat-input {
178+ flex : 0 0 auto ;
179+ position : sticky ;
180+ bottom : 0 ;
181+ background : var (--q-dark , #1d1f23 );
182+ }
183+
165184.chat-embed-launcher-wrap {
166185 display : flex ;
167186 justify-content : center ;
Original file line number Diff line number Diff line change 1717 <q-badge v-if =" chatData.resolved" color =" green" >resolved</q-badge >
1818 </q-card-section >
1919 <q-separator ></q-separator >
20- <q-card-section class =" q-pa-none" >
20+ <q-card-section class =" q-pa-none chat-public-body " >
2121 <div class =" chat-container" ref =" chatScroll" >
2222 <div class =" chat-messages q-pa-md" >
2323 <q-chat-message
3434 </div >
3535 <div v-else v-text =" message.message" ></div >
3636 </q-chat-message >
37- <div v-if =" !chatData.messages.length" class =" text-caption text-grey" >
37+ <div
38+ v-if =" !chatData.messages.length"
39+ class =" text-caption text-grey"
40+ >
3841 Start the conversation.
3942 </div >
4043 </div >
4144 </div >
4245 <q-separator ></q-separator >
43- <div class =" q-pt-sm q-px-md q-pb-md" >
46+ <div class =" chat-input q-pt-sm q-px-md q-pb-md" >
4447 <q-form @submit =" sendMessage" class =" row items-center" >
4548 <q-input
4649 dense
7982 </div >
8083
8184 <div class =" col-12 col-lg-4 q-gutter-y-md" >
82- <q-card >
83- <q-card-section >
84- <h6 class =" q-mb-sm q-mt-none" >
85- <span v-text =" publicPageData.name" ></span >
86- </h6 >
87- <p class =" q-my-none text-caption text-grey" >
88- <span v-if =" publicPageData.paid" >Paid support enabled.</span >
89- <span v-else >Free chat support.</span >
90- </p >
91- </q-card-section >
92- </q-card >
9385 <q-card >
9486 <q-card-section >
9587 <div class =" text-subtitle2" >Participants</div >
172164 </q-dialog >
173165 </div >
174166</template >
167+
168+ <style >
169+ .chat-public-body {
170+ display : flex ;
171+ flex-direction : column ;
172+ height : 100vh ;
173+ }
174+
175+ .chat-public-body .chat-container {
176+ flex : 1 1 auto ;
177+ overflow-y : auto ;
178+ min-height : 0 ;
179+ }
180+
181+ .chat-public-body .chat-input {
182+ flex : 0 0 auto ;
183+ position : sticky ;
184+ bottom : 0 ;
185+ background : var (--q-dark , #1d1f23 );
186+ }
187+ </style >
You can’t perform that action at this time.
0 commit comments