chore: remove theme console and enforce dropdown style
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user