Add toolbar block
This commit is contained in:
parent
f35ab35bda
commit
d6de390808
|
@ -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>
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user