Refactor model info UI

This commit is contained in:
dwrz
2026-11-02 03:25:54 +00:00
parent a4cc2d31ba
commit 7224a2e573
4 changed files with 21 additions and 23 deletions
+17 -20
View File
@@ -86,8 +86,7 @@ body {
height: 100dvh;
max-width: calc(var(--measure) + var(--s3) * 2);
margin-inline: auto;
padding: var(--s0);
padding-bottom: 0;
padding: 0 var(--s0);
}
/* ==================== */
@@ -253,21 +252,6 @@ body {
gap: 0.125rem;
}
.compose__model {
padding: 0 var(--s-1);
font-size: 0.7rem;
font-family: var(--font-mono);
color: var(--color-text-muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
line-height: 1;
}
.compose__model:empty {
display: none;
}
.compose__attachment {
display: flex;
align-items: center;
@@ -352,10 +336,25 @@ body {
/* ==================== */
.footer {
margin-top: var(--s0);
background: var(--color-bg);
}
.footer__status {
padding: var(--s-2) var(--s-1);
font-size: 0.7rem;
font-family: var(--font-mono);
font-style: italic;
color: var(--color-text);
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.footer__status[hidden] {
display: none;
}
.footer__select {
height: 2rem;
padding: 0 var(--s-1);
@@ -863,7 +862,6 @@ body {
@media (max-width: 639px) {
.container {
padding: 0;
padding-top: var(--s-1);
}
.chat {
@@ -872,7 +870,6 @@ body {
}
.footer {
margin-top: var(--s-1);
padding-bottom: 0;
}
+3 -2
View File
@@ -820,14 +820,15 @@ export class UI {
/**
* _updateComposeModelLabel sets the text and hover title of the
* compose bar's model indicator to the active provider/model.
* footer status bar's model indicator to the active provider and model.
* @private
*/
_updateComposeModelLabel() {
const { provider, model } = this.getSelectedModel();
const label = provider && model ? `${provider}/${model}` : '';
const label = provider && model ? `${provider} • ${model}` : '';
this.$composeModelLabel.textContent = label;
this.$composeModelLabel.title = label;
this.$composeModelLabel.hidden = !label;
}
/**
@@ -35,7 +35,6 @@
>
<svg class="icon"><use href="/static/icons.svg#location"></use></svg>
</button>
<span class="compose__model" id="compose-model-label"></span>
</div>
<input type="file" id="file-input" multiple hidden />
<div class="compose__actions-right">
@@ -1,5 +1,6 @@
{{ define "footer" }}
<footer class="footer">
<div class="footer__status" id="compose-model-label" hidden></div>
{{ template "footer/compose" . }}
{{ template "footer/toolbar" . }}
</footer>