Change column header structure
This commit is contained in:
parent
d6de390808
commit
2133ff22d0
|
@ -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>
|
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user