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

View File

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