This commit is contained in:
syuilo
2023-05-08 18:30:40 +09:00
parent 8709487cd5
commit f8ed6b1a54
7 changed files with 8 additions and 31 deletions

View File

@@ -22,7 +22,7 @@
<span :class="$style.title"><slot name="header"></slot></span>
<button v-tooltip="i18n.ts.settings" :class="$style.menu" class="_button" @click.stop="showSettingsMenu"><i class="ti ti-dots"></i></button>
</header>
<div v-show="active" ref="body" v-container :class="$style.body">
<div v-show="active" ref="body" :class="$style.body">
<slot></slot>
</div>
</section>
@@ -362,7 +362,7 @@ function onDrop(ev) {
overflow-x: clip;
-webkit-overflow-scrolling: touch;
box-sizing: border-box;
container-type: inline-size;
container-type: size;
background-color: var(--bg);
}
</style>

View File

@@ -2,10 +2,10 @@
<div :class="[$style.root, { [$style.withWallpaper]: wallpaper }]">
<XSidebar v-if="!isMobile" :class="$style.sidebar"/>
<MkStickyContainer v-container :class="$style.contents">
<MkStickyContainer :class="$style.contents">
<template #header><XStatusBars :class="$style.statusbars"/></template>
<main style="min-width: 0;" :style="{ background: pageMetadata?.value?.bg }" @contextmenu.stop="onContextmenu">
<div :class="$style.content" style="container-type: inline-size;">
<div :class="$style.content" style="container-type: size;">
<RouterView/>
</div>
<div :class="$style.spacer"></div>