fix: transtion for background

This commit is contained in:
2026-04-29 21:05:16 +02:00
parent df0428f240
commit a5b2dc6fef
3 changed files with 17 additions and 3 deletions
+1 -1
View File
@@ -144,4 +144,4 @@ git tag -d v1.0.0; git push origin :refs/tags/v1.0.0; git tag -a v1.0.0 -m "Rele
- Token refresh - Token refresh
- No error when streaming with too large model - No error when streaming with too large model
- Translations - Translations
- qtop models during geenration - stop models during geenration
+1 -1
View File
@@ -31,7 +31,7 @@ export default function ModelSelect({
{/* Trigger */} {/* Trigger */}
<button <button
onClick={() => setOpen((v) => !v)} onClick={() => setOpen((v) => !v)}
className="flex items-center gap-2 bg-secondary border border-muted rounded-lg px-3 py-2 text-sm text-primary transition-fast" className="flex items-center gap-2 bg-secondary border border-muted rounded-lg px-3 py-2 text-sm text-primary transition-theme"
> >
<span>{selectedModel || 'Select model'}</span> <span>{selectedModel || 'Select model'}</span>
+15 -1
View File
@@ -24,7 +24,7 @@ body {
--footer-height: 70px; --footer-height: 70px;
--bg-primary: #000000; --bg-primary: #000000;
--bg-secondary: oklch(27.4% 0.006 286.033); --bg-secondary: #27272a;
--text-primary: #ffffff; --text-primary: #ffffff;
--text-secondary: #bbbbbb; --text-secondary: #bbbbbb;
@@ -109,9 +109,23 @@ body {
TRANSITIONS TRANSITIONS
========================= */ ========================= */
@property --bg-secondary {
syntax: '<color>';
inherits: true;
initial-value: transparent;
}
@property --bg-primary {
syntax: '<color>';
inherits: true;
initial-value: transparent;
}
@layer utilities { @layer utilities {
.transition-theme { .transition-theme {
transition: transition:
--bg-secondary 500ms ease,
--bg-primary 500ms ease,
color 500ms ease, color 500ms ease,
background-color 500ms ease, background-color 500ms ease,
border-color 500ms ease; border-color 500ms ease;