remove studio class.

This commit is contained in:
Darshan
2025-11-06 16:41:41 +05:30
parent bc71bb590c
commit 98f29401e4
+3 -7
View File
@@ -123,27 +123,23 @@
$: {
if (browser) {
const isCloudClass = isCloud ? 'is-cloud' : '';
const isStudioClass = PUBLIC_CONSOLE_PROFILE === 'studio' ? 'is-studio' : '';
if ($app.theme === 'auto') {
const darkThemeMq = window.matchMedia('(prefers-color-scheme: dark)');
if (darkThemeMq.matches) {
document.body.setAttribute(
'class',
`theme-dark ${isCloudClass} ${isStudioClass} no-transition`
);
document.body.setAttribute('class', `theme-dark ${isCloudClass} no-transition`);
$app.themeInUse = 'dark';
} else {
document.body.setAttribute(
'class',
`theme-light ${isCloudClass} ${isStudioClass} no-transition`
`theme-light ${isCloudClass} no-transition`
);
$app.themeInUse = 'light';
}
} else {
document.body.setAttribute(
'class',
`theme-${$app.theme} ${isCloudClass} ${isStudioClass} no-transition`
`theme-${$app.theme} ${isCloudClass} no-transition`
);
$app.themeInUse = $app.theme;
}