Skip to content

Commit 43d8f44

Browse files
committed
Apply styles from the chat mode to the completion mode also
- images - button styles - textarea style
1 parent 11dae28 commit 43d8f44

File tree

2 files changed

+23
-25
lines changed

2 files changed

+23
-25
lines changed

llamafile/server/www/chatbot.css

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,15 @@ ul li:first-child {
173173
background-color: transparent;
174174
}
175175

176-
.chat-input:focus {
176+
.chat-input:focus,
177+
#completions-input:focus {
177178
border-color: #86b7fe;
178179
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
179180
}
180181

181-
.chat-input-container button, .menu-trigger {
182+
.chat-input-container button,
183+
.menu-trigger,
184+
.completions-content button {
182185
display: flex;
183186
align-items: center;
184187
justify-content: center;
@@ -196,7 +199,9 @@ ul li:first-child {
196199
gap: 0.5em;
197200
}
198201

199-
.chat-input-button-container button img, .menu-trigger img {
202+
.chat-input-button-container button img,
203+
.menu-trigger img,
204+
.completions-controls img {
200205
width: 24px;
201206
height: 24px;
202207
}
@@ -206,26 +211,33 @@ ul li:first-child {
206211
gap: 0.5rem;
207212
}
208213

209-
.chat-input-button-row button, .menu-trigger {
214+
.chat-input-button-row button,
215+
.menu-trigger,
216+
.completions-controls button {
210217
padding: 0.5rem .5rem;
211218
background: #9299a0;
212219
}
213220

214-
.chat-input-button-row button:hover, .menu-trigger:hover {
221+
.chat-input-button-row button:hover,
222+
.menu-trigger:hover,
223+
.completions-controls button:hover {
215224
background: #5c636a;
216225
}
217226

218-
.send-button {
227+
.send-button,
228+
button.complete-button {
219229
padding: 0.75rem 1.5rem;
220230
background: #0d6efd;
221231
font-size: 1rem;
222232
}
223233

224-
.send-button:hover {
234+
.send-button:hover,
235+
button.complete-button:hover {
225236
background: #0b5ed7;
226237
}
227238

228-
.send-button:disabled {
239+
.send-button:disabled,
240+
button.complete-button:disabled {
229241
background: #6c757d;
230242
cursor: not-allowed;
231243
}
@@ -461,28 +473,14 @@ ul li:first-child {
461473
font-size: 1rem;
462474
font-family: inherit;
463475
resize: none;
476+
outline: none ;
464477
}
465478

466479
.completions-controls {
467480
display: flex;
468481
gap: 0.5rem;
469482
}
470483

471-
.complete-button {
472-
padding: 0.75rem 1.5rem;
473-
background: #0d6efd;
474-
color: white;
475-
border: none;
476-
border-radius: 6px;
477-
cursor: pointer;
478-
font-size: 1rem;
479-
transition: background-color 0.2s;
480-
}
481-
482-
.complete-button:hover {
483-
background: #0b5ed7;
484-
}
485-
486484
.mode-dropdown {
487485
display: none;
488486
}

llamafile/server/www/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h1>
5454
<span id="model-completions">llamafile</span>
5555
</h1>
5656
<div class="menu-dropdown">
57-
<button class="menu-trigger"></button>
57+
<button class="menu-trigger"><img src="menu.svg" alt="[menu]"></button>
5858
<div class="menu">
5959
<button class="menu-item" id="completions-mode-switch">Switch to Chat Mode</button>
6060
</div>
@@ -65,7 +65,7 @@ <h1>
6565
<div class="completions-controls">
6666
<button class="complete-button" id="complete-button">Complete</button>
6767
<button class="stop-button" id="completions-stop-button" style="display:none">Stop</button>
68-
<button class="settings-button" id="completions-settings-button" title="Settings">⚙️</button>
68+
<button class="settings-button" id="completions-settings-button" title="Settings"><img src="gear.svg" alt="[settings]"></button>
6969
</div>
7070
</div>
7171
</div>

0 commit comments

Comments
 (0)