Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Settings contract: read the embedding picker's stacking classes inside cn() too (#12945)

Daniel Han26c86cb7a006
diff --git a/tests/studio/test_settings_compact_overflow_contract.py b/tests/studio/test_settings_compact_overflow_contract.py
index 16463959b91..c45e3369ca6 100644
--- a/tests/studio/test_settings_compact_overflow_contract.py
+++ b/tests/studio/test_settings_compact_overflow_contract.py
@@ -80,7 +80,9 @@ def test_embedding_model_controls_stack_on_the_narrowest_viewports():
str(path.relative_to(REPO))
for path in owners
if not (
- 'className="max-[360px]:flex-col max-[360px]:items-stretch max-[360px]:gap-3"'
+ # The quoted class string, whether it is the whole className or one argument of
+ # cn(...) beside a conditional class, which is how #12875 writes it.
+ '"max-[360px]:flex-col max-[360px]:items-stretch max-[360px]:gap-3"'
in (source := path.read_text(encoding = "utf-8"))
# The fixed width has to give way at the breakpoint: flex-1 for the
# combobox, a full row for the picker trigger.