Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix(editor): keep slider header height stable when the reset button appears

EtienneLescot45159172baa4
diff --git a/src/components/ai-edition/NewEditorShell.module.css b/src/components/ai-edition/NewEditorShell.module.css
index 1384776eb..fe6a0da30 100644
--- a/src/components/ai-edition/NewEditorShell.module.css
+++ b/src/components/ai-edition/NewEditorShell.module.css
@@ -1393,7 +1393,8 @@ textarea.control {
grid-template-rows: auto auto;
gap: 10px;
}
-.sliderCell .head { display: flex; align-items: center; gap: 6px; }
+/* min-height = the reset button's 20px, so the row keeps its height whether it shows or not. */
+.sliderCell .head { display: flex; align-items: center; gap: 6px; min-height: 20px; }
/* The label takes the free room, so the value and the reset button sit right, with or without
each other. */
.sliderCell .label { font: 500 13px/1.3 var(--font-body); color: var(--fg-2); margin-right: auto; }