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> <template>
<div id="main"> <div id="main">
<!-- idを渡してそのIDのTL情報をとってきてもらうつもり --> <!-- 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> </div>
</template> </template>
@ -43,6 +46,19 @@ export default class Main extends Vue {
<style lang="postcss"> <style lang="postcss">
#main { #main {
width: 100vw;
height: 100vh; 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> </style>

View File

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

View File

@ -34,6 +34,7 @@ export default class App extends Vue {
return { return {
'--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',
'--font-size': this.fontSize, '--font-size': this.fontSize,
} }
} }