fix: background color in classic view
This commit is contained in:
parent
a2cfd1192a
commit
ca6404a639
|
@ -39,14 +39,16 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { defineAsyncComponent, markRaw, ComputedRef, ref, onMounted, provide } from 'vue';
|
import { defineAsyncComponent, markRaw, ref, onMounted, provide } from 'vue';
|
||||||
import XSidebar from './classic.sidebar.vue';
|
import XSidebar from './classic.sidebar.vue';
|
||||||
import XCommon from './_common_/common.vue';
|
import XCommon from './_common_/common.vue';
|
||||||
|
import type { ComputedRef } from 'vue';
|
||||||
|
import type { PageMetadata } from '@/scripts/page-metadata';
|
||||||
import { instanceName } from '@/config';
|
import { instanceName } from '@/config';
|
||||||
import { StickySidebar } from '@/scripts/sticky-sidebar';
|
import { StickySidebar } from '@/scripts/sticky-sidebar';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
import { mainRouter } from '@/router';
|
import { mainRouter } from '@/router';
|
||||||
import { PageMetadata, provideMetadataReceiver, setPageMetadata } from '@/scripts/page-metadata';
|
import { provideMetadataReceiver, setPageMetadata } from '@/scripts/page-metadata';
|
||||||
import { defaultStore } from '@/store';
|
import { defaultStore } from '@/store';
|
||||||
import { i18n } from '@/i18n';
|
import { i18n } from '@/i18n';
|
||||||
const XHeaderMenu = defineAsyncComponent(() => import('./classic.header.vue'));
|
const XHeaderMenu = defineAsyncComponent(() => import('./classic.header.vue'));
|
||||||
|
@ -116,10 +118,6 @@ function onContextmenu(ev: MouseEvent) {
|
||||||
}], ev);
|
}], ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
function onAiClick(ev) {
|
|
||||||
//if (this.live2d) this.live2d.click(ev);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (window.innerWidth < 1024) {
|
if (window.innerWidth < 1024) {
|
||||||
localStorage.setItem('ui', 'default');
|
localStorage.setItem('ui', 'default');
|
||||||
location.reload();
|
location.reload();
|
||||||
|
@ -218,6 +216,7 @@ onMounted(() => {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
overflow: clip;
|
overflow: clip;
|
||||||
--margin: 12px;
|
--margin: 12px;
|
||||||
|
background: var(--bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
> .widgets {
|
> .widgets {
|
||||||
|
|
Loading…
Reference in New Issue