|
15 | 15 | <!-- sidebar --> |
16 | 16 | <div class="drawer-side h-screen lg:h-screen z-50 lg:max-w-64"> |
17 | 17 | <label for="toggle-drawer" aria-label="close sidebar" class="drawer-overlay"></label> |
18 | | - <div class="flex flex-col bg-base-200 min-h-full py-4 px-4"> |
| 18 | + <div class="flex flex-col bg-base-200 min-h-full max-w-[calc(100vw-2em)] py-4 px-4"> |
19 | 19 | <div class="flex flex-row items-center justify-between mb-4 mt-4"> |
20 | 20 | <h2 class="font-bold ml-4">Conversations</h2> |
21 | 21 |
|
@@ -63,15 +63,15 @@ <h2 class="font-bold ml-4">Conversations</h2> |
63 | 63 | <div class="flex items-center"> |
64 | 64 | <div v-if="messages.length > 0" class="dropdown dropdown-end"> |
65 | 65 | <!-- "more" button --> |
66 | | - <div tabindex="0" role="button" class="btn m-1"> |
| 66 | + <button tabindex="0" role="button" class="btn m-1" :disabled="isGenerating"> |
67 | 67 | <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-three-dots-vertical" viewBox="0 0 16 16"> |
68 | 68 | <path d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"/> |
69 | 69 | </svg> |
70 | | - </div> |
| 70 | + </button> |
71 | 71 | <!-- "more" dropdown menu --> |
72 | 72 | <ul tabindex="0" class="dropdown-content menu bg-base-100 rounded-box z-[1] w-52 p-2 shadow"> |
73 | | - <li @click="downloadConv(viewingConvId)" :disabled="isGenerating"><a>Download</a></li> |
74 | | - <li class="text-error" @click="deleteConv(viewingConvId)" :disabled="isGenerating"><a>Delete</a></li> |
| 73 | + <li @click="downloadConv(viewingConvId)"><a>Download</a></li> |
| 74 | + <li class="text-error" @click="deleteConv(viewingConvId)"><a>Delete</a></li> |
75 | 75 | </ul> |
76 | 76 | </div> |
77 | 77 | <button class="btn" @click="showConfigDialog = true" :disabled="isGenerating"> |
@@ -132,7 +132,7 @@ <h2 class="font-bold ml-4">Conversations</h2> |
132 | 132 | <!-- textarea for editing message --> |
133 | 133 | <template v-if="editingMsg && editingMsg.id === msg.id"> |
134 | 134 | <textarea |
135 | | - class="textarea textarea-bordered bg-base-100 text-base-content w-96" |
| 135 | + class="textarea textarea-bordered bg-base-100 text-base-content w-[calc(90vw-8em)] lg:w-96" |
136 | 136 | v-model="msg.content"></textarea> |
137 | 137 | <br/> |
138 | 138 | <button class="btn btn-ghost mt-2 mr-2" @click="editingMsg = null">Cancel</button> |
|
0 commit comments