|
12 | 12 | <i class="text-caption q-pl-sm">powered by LNbits</i> |
13 | 13 | </div> |
14 | 14 | <div v-else class="chat-embed-body"> |
| 15 | + <div class="chat-embed-header q-pa-sm"> |
| 16 | + <div v-if="!chatData.messages.length" class="text-caption text-grey"> |
| 17 | + Start the conversation. |
| 18 | + </div> |
| 19 | + <div class="chat-embed-actions"> |
| 20 | + <q-btn |
| 21 | + v-if="chatId" |
| 22 | + flat |
| 23 | + dense |
| 24 | + icon="open_in_new" |
| 25 | + :href="publicChatLink" |
| 26 | + target="_blank" |
| 27 | + > |
| 28 | + <q-tooltip>Open public chat</q-tooltip> |
| 29 | + </q-btn> |
| 30 | + <q-btn flat dense icon="expand_less" @click="toggleMinimize"> |
| 31 | + <q-tooltip>Minimize</q-tooltip> |
| 32 | + </q-btn> |
| 33 | + </div> |
| 34 | + </div> |
15 | 35 | <div class="chat-container" ref="chatScroll"> |
16 | 36 | <div class="chat-messages q-pa-md"> |
17 | 37 | <q-chat-message |
|
28 | 48 | </div> |
29 | 49 | <div v-else v-text="message.message"></div> |
30 | 50 | </q-chat-message> |
31 | | - <div v-if="!chatData.messages.length" class="text-caption text-grey"> |
32 | | - Start the conversation. |
33 | | - </div> |
34 | 51 | </div> |
35 | 52 | </div> |
36 | 53 | <q-separator></q-separator> |
|
53 | 70 | type="submit" |
54 | 71 | :disable="!messageInput || sending" |
55 | 72 | ></q-btn> |
56 | | - <q-btn |
57 | | - v-if="chatId" |
58 | | - class="q-ml-sm" |
59 | | - flat |
60 | | - dense |
61 | | - icon="open_in_new" |
62 | | - :href="publicChatLink" |
63 | | - target="_blank" |
64 | | - > |
65 | | - <q-tooltip>Open public chat</q-tooltip> |
66 | | - </q-btn> |
67 | 73 | <q-btn |
68 | 74 | v-if="publicPageData.tips" |
69 | 75 | class="q-ml-sm" |
|
84 | 90 | > |
85 | 91 | <q-tooltip>Fund balance</q-tooltip> |
86 | 92 | </q-btn> |
87 | | - <q-btn |
88 | | - class="q-ml-sm" |
89 | | - flat |
90 | | - dense |
91 | | - icon="expand_less" |
92 | | - @click="toggleMinimize" |
93 | | - > |
94 | | - <q-tooltip>Minimize</q-tooltip> |
95 | | - </q-btn> |
96 | 93 | </q-form> |
97 | 94 | <div v-if="pendingAmount" class="text-caption text-grey q-mt-sm"> |
98 | 95 | Payment required (<span v-text="pendingAmount"></span> sats) |
@@ -224,6 +221,18 @@ body { |
224 | 221 | height: 100%; |
225 | 222 | } |
226 | 223 |
|
| 224 | +.chat-embed-header { |
| 225 | + display: flex; |
| 226 | + align-items: center; |
| 227 | + justify-content: space-between; |
| 228 | + gap: 8px; |
| 229 | +} |
| 230 | +
|
| 231 | +.chat-embed-actions { |
| 232 | + display: flex; |
| 233 | + gap: 8px; |
| 234 | +} |
| 235 | +
|
227 | 236 | .chat-container { |
228 | 237 | flex: 1 1 auto; |
229 | 238 | overflow-y: auto; |
|
0 commit comments