Skip to content
Snippets Groups Projects
Unverified Commit 93e5e4af authored by syuilo's avatar syuilo
Browse files

🎨

parent aa5528d1
No related branches found
No related tags found
No related merge requests found
<template>
<div class="mk-ui" v-hotkey.global="keymap">
<div class="bg" v-if="$store.getters.isSignedIn && $store.state.i.wallpaperUrl" :style="style"></div>
<x-header class="header" v-show="!zenMode"/>
<x-header class="header" v-show="!zenMode" ref="header"/>
<div class="content">
<slot></slot>
</div>
......@@ -59,6 +59,9 @@ export default Vue.extend({
toggleZenMode() {
this.zenMode = !this.zenMode;
this.$nextTick(() => {
this.$store.commit('setUiHeaderHeight', this.$refs.header.$el.offsetHeight);
});
}
}
});
......
......@@ -279,7 +279,7 @@ root(isDark)
height 100%
background isDark ? #282C37 : #fff
border-radius 6px
box-shadow 0 2px 16px rgba(#000, 0.1)
//box-shadow 0 2px 16px rgba(#000, 0.1)
overflow hidden
&.draghover
......
<template>
<mk-ui :class="$style.root">
<div class="qlvquzbjribqcaozciifydkngcwtyzje" :data-darkmode="$store.state.device.darkmode">
<div class="qlvquzbjribqcaozciifydkngcwtyzje" :data-darkmode="$store.state.device.darkmode" :style="style">
<template v-for="ids in layout">
<div v-if="ids.length > 1" class="folder">
<template v-for="id, i in ids">
......@@ -35,6 +35,11 @@ export default Vue.extend({
if (this.$store.state.settings.deck == null) return [];
if (this.$store.state.settings.deck.layout == null) return this.$store.state.settings.deck.columns.map(c => [c.id]);
return this.$store.state.settings.deck.layout;
},
style(): any {
return {
height: `calc(100vh - ${this.$store.state.uiHeaderHeight}px)`
};
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment