revert: html background for widget (#13981)

Reverts chatwoot/chatwoot#13955
This commit is contained in:
Shivam Mishra
2026-04-02 16:02:22 +05:30
committed by GitHub
parent b815eb9ce0
commit b9b5a18767
4 changed files with 5 additions and 9 deletions

View File

@@ -7,7 +7,7 @@
html,
body {
@apply antialiased h-full bg-n-slate-2 dark:bg-n-solid-1;
@apply antialiased h-full;
}
.is-mobile {

View File

@@ -1,4 +1,4 @@
import { computed, watchEffect } from 'vue';
import { computed } from 'vue';
import { useMapGetter } from 'dashboard/composables/store';
const isDarkModeAuto = mode => mode === 'auto';
@@ -23,10 +23,6 @@ export function useDarkMode() {
calculatePrefersDarkMode(darkMode.value, systemPreference.value)
);
watchEffect(() => {
document.documentElement.classList.toggle('dark', prefersDarkMode.value);
});
return {
darkMode,
prefersDarkMode,

View File

@@ -10,7 +10,7 @@ export default {
</script>
<template>
<div class="bg-n-solid-1 h-full">
<div class="bg-white h-full">
<IframeLoader :url="$route.query.link" />
</div>
</template>

View File

@@ -58,9 +58,9 @@ By default, it renders:
}
</script>
</head>
<body class="bg-white dark:bg-slate-900">
<body>
<div id="portal" class="antialiased">
<main class="flex flex-col min-h-screen main-content" role="main">
<main class="flex flex-col min-h-screen bg-white main-content dark:bg-slate-900" role="main">
<% if !@is_plain_layout_enabled %>
<%= render "public/api/v1/portals/header", portal: @portal %>
<% end %>