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.

Studio: spider or bats on a third of Halloween pages each (#15770)

Michael Han7065bf6c4dd6
diff --git a/studio/frontend/src/features/halloween/spooky-decorations.tsx b/studio/frontend/src/features/halloween/spooky-decorations.tsx
index bc3c2d9d51b..64252a1150b 100644
--- a/studio/frontend/src/features/halloween/spooky-decorations.tsx
+++ b/studio/frontend/src/features/halloween/spooky-decorations.tsx
@@ -154,11 +154,11 @@ export function SpookyDecorations() {
);
later(between(30_000, 60_000), bats);
};
- // A page gets a spider or bats, never both: a quarter of the time each.
+ // A page gets a spider or bats, never both: a third of the time each.
const roll = Math.random();
- if (roll < 0.25) {
+ if (roll < 1 / 3) {
later(between(2000, 6000), spider);
- } else if (roll < 0.5) {
+ } else if (roll < 2 / 3) {
later(between(2000, 6000), bats);
}
return () => {
diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.css
index 61f38b4912a..2b7b66a0642 100644
--- a/studio/frontend/src/index.css
+++ b/studio/frontend/src/index.css
@@ -2094,11 +2094,6 @@
--composer-shadow: 0 0 40px 6px rgb(255 199 44 / 0.16);
}
-/* Halloween keeps its own border on Images and Video: the neutral gray vanishes on its tinted pages. */
-html[data-palette]:not(.dark):where([data-palette="pumpkin"], [data-palette="black-cat"], [data-palette="trick-or-treat"], [data-palette="bloody-valentine"], [data-palette="alien"], [data-palette="ghost-ship"], [data-palette="the-thing"], [data-palette="midnight-haunt"], [data-palette="gothic"], [data-palette="hexberry"], [data-palette="candycorn"]) .diffusion-surface {
- --border-base: var(--th-border);
- --input-base: var(--th-border);
-}
:root[data-palette="black-cat"]:not(.dark) {
--th-bg: #f6f1ff;
diff --git a/studio/frontend/tests/halloween-trick-or-treat.test.ts b/studio/frontend/tests/halloween-trick-or-treat.test.ts
index 7ec137f13da..f60e9fe433a 100644
--- a/studio/frontend/tests/halloween-trick-or-treat.test.ts
+++ b/studio/frontend/tests/halloween-trick-or-treat.test.ts
@@ -258,7 +258,7 @@ test("spiders and bats are on by default and stay off once turned off", async ()
assert.match(deco, /const reduced = useReducedMotionConfig\(\);/);
assert.match(
deco,
- /if \(roll < 0\.25\) \{\s*later\([^;]*spider\);\s*\} else if \(roll < 0\.5\) \{\s*later\([^;]*bats\);/,
+ /if \(roll < 1 \/ 3\) \{\s*later\([^;]*spider\);\s*\} else if \(roll < 2 \/ 3\) \{\s*later\([^;]*bats\);/,
);
const css = read("../src/index.css");
// The global reduced-motion rules would end the fade at once.