This commit is contained in:
syuilo
2018-09-22 19:59:37 +09:00
parent 251629ab61
commit aa5528d11e
3 changed files with 28 additions and 19 deletions

View File

@ -55,7 +55,7 @@ export default Vue.extend({
},
mounted() {
this.$store.commit('setUiHeaderHeight', 48);
this.$store.commit('setUiHeaderHeight', this.$el.offsetHeight);
if (this.$store.getters.isSignedIn) {
const ago = (new Date().getTime() - new Date(this.$store.state.i.lastUsedAt).getTime()) / 1000;
@ -120,8 +120,7 @@ export default Vue.extend({
<style lang="stylus" scoped>
root(isDark)
position -webkit-sticky
position sticky
position fixed
top 0
z-index 1000
width 100%