fix(ui): added indication for dropdown in prefences

This commit is contained in:
2025-11-18 19:24:23 -03:00
parent 57a1fc6820
commit 4df434a7c6
2 changed files with 13 additions and 1 deletions

View File

@@ -162,6 +162,18 @@ input::-webkit-datetime-edit-year-field:focus {
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
padding-right: 18px;
}
.pref-select:after {
content: '\e80b'; /* icon-down */
font-family: $font_icon;
font-size: 10px;
pointer-events: none;
position: absolute;
right: 4px;
top: 5px;
color: var(--fg_color);
}
input[type="text"] {

View File

@@ -77,7 +77,7 @@ proc genInput*(pref, label, state, placeholder: string; class=""; autofocus=true
input(name=pref, `type`="text", placeholder=p, value=state, autofocus=(autofocus and state.len == 0))
proc genSelect*(pref, label, state: string; options: seq[string]): VNode =
buildHtml(tdiv(class="pref-group pref-input")):
buildHtml(tdiv(class="pref-group pref-input pref-select")):
label(`for`=pref): text label
select(name=pref):
for opt in options: