mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
remove studio class.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user