Change column header structure

This commit is contained in:
kPherox 2019-05-20 06:37:12 +09:00
parent d6de390808
commit 2133ff22d0
No known key found for this signature in database
GPG Key ID: C04751C2BFA2F62D
2 changed files with 11 additions and 3 deletions

View File

@ -1,6 +1,8 @@
<template>
<div class="timeline">
<div class="header">{{name}}</div>
<div class="header">
<div class="tl-name">{{name}}</div>
</div>
<Toot v-for="[id,status] in statuses" :key="id" :status="status" :pref-static="pref.static"/>
</div>
</template>
@ -115,8 +117,7 @@ export default class Column extends Vue {
<style scoped lang="postcss">
.timeline {
height: 100%;
flex-grow: 1;
flex-shrink: 1;
flex: 1;
overflow-y: scroll;
overflow-x: hidden;
@ -128,6 +129,12 @@ export default class Column extends Vue {
.header {
position: sticky;
top: 0;
background-color: var(--header);
filter: brightness(110%);
.tl-name {
height: 60px;
}
}
}
</style>

View File

@ -35,6 +35,7 @@ export default class App extends Vue {
'--color': this.isDarkMode ? 'white' : 'black',
'--bg-color': this.isDarkMode ? '#212121' : 'white',
'--toolbar': this.isDarkMode ? '#424242' : '#eeeeee',
'--header': this.isDarkMode ? '#333333' : 'white',
'--font-size': this.fontSize,
}
}