chore: remove theme console and enforce dropdown style

This commit is contained in:
Rotimi Best
2024-02-14 14:37:11 +01:00
parent 13ab070178
commit e57257108d
3 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ code {
}
.bx--list-box__menu-item__option {
white-space: normal;
white-space: normal !important;
}
.bx--list-box--xl .bx--list-box__menu-item,
.bx--list-box--lg .bx--list-box__menu-item,
@@ -92,8 +92,6 @@
function gotoSetting(pathname) {
goto(`${$currentOrgPath}/settings${pathname}`);
}
$: console.log('theme', $currentOrg.theme);
</script>
<Grid class="border-c rounded border-gray-200 w-full mt-5">
@@ -2,7 +2,7 @@ export function setTheme(theme?: string) {
// In case the default theme is added but another theme exists
if (!theme && document.body.className.includes('theme-')) {
const regex = /theme-[\w]+/gi;
document.body.className = document.body.className.replace(regex, theme);
document.body.className = document.body.className.replace(regex, theme || '');
return;
}