web app: a long switch label no longer squeezes the switch
The Sampling drawer's "Experimental speed projection" row has a longer label than "Show thinking", and the flex row shrank its switch, clipping the knob at the drawer's edge. Switches in toggle rows keep their size.
This commit is contained in:
1 parent
3cba59ea31
commit
ae3dc218ea
1 file changed
+1
@@ -107,6 +107,7 @@ main { flex: 1; min-height: 0; display: flex; }
|
||||
.facts .st-btn--icon .st-icon { width: 16px; height: 16px; }
|
||||
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: var(--st-s-4); font-size: var(--st-fs-sm);
|
||||
font-weight: var(--st-fw-medium); color: var(--st-ink-soft); }
|
||||
.toggle-row .st-toggle { flex: none; } /* a long label must not squeeze the switch */
|
||||
|
||||
/* ---------------------------------------------------------------- drawer */
|
||||
.st-drawer { z-index: 40; }
|
||||
|
||||
Reference in new issue
Block a user