1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-01-06 13:39:19 +00:00

Merge pull request #1207 from ytk141/add-note-mode-tab

add note mode tab
This commit is contained in:
Kazz Yokomizo
2017-12-16 17:33:49 +09:00
committed by GitHub
7 changed files with 121 additions and 0 deletions

View File

@@ -318,6 +318,16 @@ class MarkdownNoteDetail extends React.Component {
value={this.state.note.tags}
onChange={(e) => this.handleChange(e)}
/>
<div styleName='mode-tab'>
<div styleName='active'>
<img styleName='item-star' src='../resources/icon/icon-WYSIWYG-on.svg' />
</div>
<div>
<img styleName='item-star' src='../resources/icon/icon-code-off.svg' />
</div>
</div>
<TodoListPercentage
percentageOfTodo={getTodoPercentageOfCompleted(note.content)}
/>

View File

@@ -33,6 +33,28 @@
.body-noteEditor
absolute top bottom left right
.mode-tab
border 1px solid #eee
height 34px
display flex
align-items center
div
width 100px
height 100%
background-color #f9f9f9
display flex
align-items center
justify-content center
cursor pointer
&:first-child
border-right 1px solid #eee
img
transform scale(0.7)
.active
background-color #fff
box-shadow 2px 0px 7px #eee
z-index 1
body[data-theme="white"]
.root
box-shadow $note-detail-box-shadow

View File

@@ -6,6 +6,7 @@
width 100%
overflow-x scroll
white-space nowrap
margin-right 10px
.root::-webkit-scrollbar
display none