mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-28 02:26:10 +00:00
web/SettingsDropdown: add a separator after first item, always lowercase
also split out anything in brackets in preview
This commit is contained in:
parent
e081751c59
commit
1373d16286
|
@ -40,17 +40,20 @@
|
|||
</h4>
|
||||
<div class="right-side">
|
||||
<span class="selector-current" aria-hidden="true">
|
||||
{selectedTitle}
|
||||
{selectedTitle.split("(", 2)[0]}
|
||||
</span>
|
||||
<IconSelector />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<select on:change={e => onChange(e)} {disabled}>
|
||||
{#each Object.keys(items) as value}
|
||||
{#each Object.keys(items) as value, i}
|
||||
<option {value} selected={selectedOption === value}>
|
||||
{items[value]}
|
||||
</option>
|
||||
{#if i === 0}
|
||||
<hr>
|
||||
{/if}
|
||||
{/each}
|
||||
</select>
|
||||
</div>
|
||||
|
@ -118,6 +121,7 @@
|
|||
.selector select {
|
||||
font-size: 13px;
|
||||
font-weight: 400;
|
||||
text-transform: lowercase;
|
||||
}
|
||||
|
||||
.right-side :global(svg) {
|
||||
|
|
Loading…
Reference in a new issue