Add toolbar block

This commit is contained in:
kPherox 2019-05-20 01:38:56 +09:00
parent f35ab35bda
commit d6de390808
No known key found for this signature in database
GPG Key ID: C04751C2BFA2F62D
3 changed files with 27 additions and 1 deletions

View File

@ -1,7 +1,10 @@
<template>
<div id="main">
<!-- idを渡してそのIDのTL情報をとってきてもらうつもり -->
<Column v-for="id in timelines" :key="id" :id="id"/>
<div id="timelines">
<Column v-for="id in timelines" :key="id" :id="id"/>
</div>
<div id="toolbar"></div>
</div>
</template>
@ -43,6 +46,19 @@ export default class Main extends Vue {
<style lang="postcss">
#main {
width: 100vw;
height: 100vh;
overflow-x: hidden;
}
#timelines {
display: flex;
width: 100%;
height: calc(100vh - 40px);
overflow-x: scroll;
}
#toolbar {
width: 100vw;
height: 40px;
background-color: var(--toolbar);
}
</style>

View File

@ -115,7 +115,16 @@ export default class Column extends Vue {
<style scoped lang="postcss">
.timeline {
height: 100%;
flex-grow: 1;
flex-shrink: 1;
overflow-y: scroll;
overflow-x: hidden;
& + .timeline {
border-left: solid 1px;
border-right: none;
}
.header {
position: sticky;
top: 0;

View File

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