mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-12 05:38:55 +09:00
タイトルバー非表示オプション削除
This commit is contained in:
parent
05ba1d0fd4
commit
a19c1535e8
@ -1,6 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<FormBase>
|
<FormBase>
|
||||||
<FormSwitch v-model:value="titlebar">{{ $ts.showTitlebar }}</FormSwitch>
|
|
||||||
<FormSwitch v-model:value="showFixedPostForm">{{ $ts.showFixedPostForm }}</FormSwitch>
|
<FormSwitch v-model:value="showFixedPostForm">{{ $ts.showFixedPostForm }}</FormSwitch>
|
||||||
|
|
||||||
<FormSelect v-model:value="lang">
|
<FormSelect v-model:value="lang">
|
||||||
@ -137,7 +136,6 @@ export default defineComponent({
|
|||||||
useOsNativeEmojis: defaultStore.makeGetterSetter('useOsNativeEmojis'),
|
useOsNativeEmojis: defaultStore.makeGetterSetter('useOsNativeEmojis'),
|
||||||
disableShowingAnimatedImages: defaultStore.makeGetterSetter('disableShowingAnimatedImages'),
|
disableShowingAnimatedImages: defaultStore.makeGetterSetter('disableShowingAnimatedImages'),
|
||||||
loadRawImages: defaultStore.makeGetterSetter('loadRawImages'),
|
loadRawImages: defaultStore.makeGetterSetter('loadRawImages'),
|
||||||
titlebar: defaultStore.makeGetterSetter('titlebar'),
|
|
||||||
imageNewTab: defaultStore.makeGetterSetter('imageNewTab'),
|
imageNewTab: defaultStore.makeGetterSetter('imageNewTab'),
|
||||||
nsfw: defaultStore.makeGetterSetter('nsfw'),
|
nsfw: defaultStore.makeGetterSetter('nsfw'),
|
||||||
disablePagesScript: defaultStore.makeGetterSetter('disablePagesScript'),
|
disablePagesScript: defaultStore.makeGetterSetter('disablePagesScript'),
|
||||||
@ -182,10 +180,6 @@ export default defineComponent({
|
|||||||
this.reloadAsk();
|
this.reloadAsk();
|
||||||
},
|
},
|
||||||
|
|
||||||
titlebar() {
|
|
||||||
this.reloadAsk();
|
|
||||||
},
|
|
||||||
|
|
||||||
instanceTicker() {
|
instanceTicker() {
|
||||||
this.reloadAsk();
|
this.reloadAsk();
|
||||||
},
|
},
|
||||||
|
@ -184,10 +184,6 @@ export const defaultStore = markRaw(new Storage('base', {
|
|||||||
where: 'device',
|
where: 'device',
|
||||||
default: 'full' as 'full' | 'icon'
|
default: 'full' as 'full' | 'icon'
|
||||||
},
|
},
|
||||||
titlebar: {
|
|
||||||
where: 'device',
|
|
||||||
default: true
|
|
||||||
},
|
|
||||||
reportError: {
|
reportError: {
|
||||||
where: 'device',
|
where: 'device',
|
||||||
default: false
|
default: false
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<main class="main _panel" @contextmenu.stop="onContextmenu">
|
<main class="main _panel" @contextmenu.stop="onContextmenu">
|
||||||
<header v-if="$store.state.titlebar" class="header" @click="onHeaderClick">
|
<header class="header" @click="onHeaderClick">
|
||||||
<XHeader :info="pageInfo"/>
|
<XHeader :info="pageInfo"/>
|
||||||
</header>
|
</header>
|
||||||
<div class="content" :class="{ _flat_: !fullView }">
|
<div class="content" :class="{ _flat_: !fullView }">
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
<div class="mk-app" :class="{ wallpaper }">
|
<div class="mk-app" :class="{ wallpaper }">
|
||||||
<XSidebar ref="nav" class="sidebar"/>
|
<XSidebar ref="nav" class="sidebar"/>
|
||||||
|
|
||||||
<div class="contents" ref="contents" :class="{ withHeader: $store.state.titlebar }" @contextmenu.stop="onContextmenu">
|
<div class="contents" ref="contents" @contextmenu.stop="onContextmenu">
|
||||||
<header v-if="$store.state.titlebar" class="header" ref="header" @click="onHeaderClick">
|
<header class="header" ref="header" @click="onHeaderClick">
|
||||||
<XHeader :info="pageInfo"/>
|
<XHeader :info="pageInfo"/>
|
||||||
</header>
|
</header>
|
||||||
<main ref="main">
|
<main ref="main">
|
||||||
@ -260,10 +260,7 @@ export default defineComponent({
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
--stickyTop: #{$header-height};
|
--stickyTop: #{$header-height};
|
||||||
|
padding-top: $header-height;
|
||||||
&.withHeader {
|
|
||||||
padding-top: $header-height;
|
|
||||||
}
|
|
||||||
|
|
||||||
> .header {
|
> .header {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
Loading…
Reference in New Issue
Block a user