revert: html background for widget (#13981)
Reverts chatwoot/chatwoot#13955
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
@apply antialiased h-full bg-n-slate-2 dark:bg-n-solid-1;
|
@apply antialiased h-full;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-mobile {
|
.is-mobile {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { computed, watchEffect } from 'vue';
|
import { computed } from 'vue';
|
||||||
import { useMapGetter } from 'dashboard/composables/store';
|
import { useMapGetter } from 'dashboard/composables/store';
|
||||||
|
|
||||||
const isDarkModeAuto = mode => mode === 'auto';
|
const isDarkModeAuto = mode => mode === 'auto';
|
||||||
@@ -23,10 +23,6 @@ export function useDarkMode() {
|
|||||||
calculatePrefersDarkMode(darkMode.value, systemPreference.value)
|
calculatePrefersDarkMode(darkMode.value, systemPreference.value)
|
||||||
);
|
);
|
||||||
|
|
||||||
watchEffect(() => {
|
|
||||||
document.documentElement.classList.toggle('dark', prefersDarkMode.value);
|
|
||||||
});
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
darkMode,
|
darkMode,
|
||||||
prefersDarkMode,
|
prefersDarkMode,
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="bg-n-solid-1 h-full">
|
<div class="bg-white h-full">
|
||||||
<IframeLoader :url="$route.query.link" />
|
<IframeLoader :url="$route.query.link" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -58,9 +58,9 @@ By default, it renders:
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body class="bg-white dark:bg-slate-900">
|
<body>
|
||||||
<div id="portal" class="antialiased">
|
<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 %>
|
<% if !@is_plain_layout_enabled %>
|
||||||
<%= render "public/api/v1/portals/header", portal: @portal %>
|
<%= render "public/api/v1/portals/header", portal: @portal %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user