This commit is contained in:
syuilo 2022-12-28 18:02:11 +09:00
parent dc68c39cb1
commit 229d185354
10 changed files with 10 additions and 9 deletions

View file

@ -10,7 +10,7 @@
</span> </span>
<button class="_button" @click="$refs.modal.close()"><i class="ti ti-x"></i></button> <button class="_button" @click="$refs.modal.close()"><i class="ti ti-x"></i></button>
</div> </div>
<div class="body"> <div class="body" style="container-type: inline-size;">
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader v-if="pageMetadata?.value && !pageMetadata?.value.hideHeader" :info="pageMetadata?.value"/></template> <template #header><MkPageHeader v-if="pageMetadata?.value && !pageMetadata?.value.hideHeader" :info="pageMetadata?.value"/></template>
<RouterView :router="router"/> <RouterView :router="router"/>

View file

@ -17,7 +17,7 @@
</template> </template>
</template> </template>
<div class="yrolvcoq" :style="{ background: pageMetadata?.value?.bg }"> <div class="yrolvcoq" :style="{ background: pageMetadata?.value?.bg }" style="container-type: inline-size;">
<RouterView :router="router"/> <RouterView :router="router"/>
</div> </div>
</XWindow> </XWindow>

View file

@ -16,7 +16,7 @@
</div> </div>
</MkSpacer> </MkSpacer>
</div> </div>
<div v-if="!(narrow && currentPage?.route.name == null)" class="main"> <div v-if="!(narrow && currentPage?.route.name == null)" class="main" style="container-type: inline-size;">
<RouterView/> <RouterView/>
</div> </div>
</div> </div>

View file

@ -11,7 +11,7 @@
</div> </div>
</div> </div>
<div v-if="!(narrow && currentPage?.route.name == null)" class="main"> <div v-if="!(narrow && currentPage?.route.name == null)" class="main">
<div class="bkzroven"> <div class="bkzroven" style="container-type: inline-size;">
<RouterView/> <RouterView/>
</div> </div>
</div> </div>

View file

@ -11,7 +11,7 @@
</div> </div>
<main class="main" :style="{ background: pageMetadata?.value?.bg }" @contextmenu.stop="onContextmenu"> <main class="main" :style="{ background: pageMetadata?.value?.bg }" @contextmenu.stop="onContextmenu">
<div class="content"> <div class="content" style="container-type: inline-size;">
<RouterView/> <RouterView/>
</div> </div>
</main> </main>

View file

@ -392,6 +392,7 @@ function onDrop(ev) {
overflow-x: clip; overflow-x: clip;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
box-sizing: border-box; box-sizing: border-box;
container-type: inline-size;
background-color: var(--bg); background-color: var(--bg);
} }
} }

View file

@ -5,7 +5,7 @@
<MkStickyContainer class="contents"> <MkStickyContainer class="contents">
<template #header><XStatusBars :class="$style.statusbars"/></template> <template #header><XStatusBars :class="$style.statusbars"/></template>
<main style="min-width: 0;" :style="{ background: pageMetadata?.value?.bg }" @contextmenu.stop="onContextmenu"> <main style="min-width: 0;" :style="{ background: pageMetadata?.value?.bg }" @contextmenu.stop="onContextmenu">
<div :class="$style.content"> <div :class="$style.content" style="container-type: inline-size;">
<RouterView/> <RouterView/>
</div> </div>
<div :class="$style.spacer"></div> <div :class="$style.spacer"></div>

View file

@ -24,7 +24,7 @@
<header v-show="mainRouter.currentRoute?.name !== 'index'" ref="header" class="header"> <header v-show="mainRouter.currentRoute?.name !== 'index'" ref="header" class="header">
<XHeader :info="pageInfo"/> <XHeader :info="pageInfo"/>
</header> </header>
<main ref="main"> <main ref="main" style="container-type: inline-size;">
<RouterView/> <RouterView/>
</main> </main>
<div class="powered-by"> <div class="powered-by">

View file

@ -11,7 +11,7 @@
<div class="contents"> <div class="contents">
<XHeader v-if="!root" class="header" :info="pageInfo"/> <XHeader v-if="!root" class="header" :info="pageInfo"/>
<main> <main style="container-type: inline-size;">
<RouterView/> <RouterView/>
</main> </main>
<div v-if="!root" class="powered-by"> <div v-if="!root" class="powered-by">

View file

@ -1,5 +1,5 @@
<template> <template>
<div class="mk-app"> <div class="mk-app" style="container-type: inline-size;">
<RouterView/> <RouterView/>
<XCommon/> <XCommon/>