1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-02-07 04:51:39 +00:00

Fixed ToggleMode button overlapping CSS issue

The absolute positioning of the toggle mode button was creating a static overlapping position issue with the top bar. This fix solves that problem by removing the static positioning and coupling the button component with the buttons to the right
This commit is contained in:
pfftdammitchris
2018-02-20 21:09:43 -08:00
parent 46a733ba5b
commit 4f15cc3f08
3 changed files with 6 additions and 7 deletions

View File

@@ -362,12 +362,10 @@ class MarkdownNoteDetail extends React.Component {
value={this.state.note.tags}
onChange={this.handleUpdateTag.bind(this)}
/>
<ToggleModeButton onClick={(e) => this.handleSwitchMode(e)} editorType={editorType} />
<TodoListPercentage percentageOfTodo={getTodoPercentageOfCompleted(note.content)} />
</div>
<div styleName='info-right'>
<ToggleModeButton onClick={(e) => this.handleSwitchMode(e)} editorType={editorType} />
<StarButton
onClick={(e) => this.handleStarButtonClick(e)}
isActive={note.isStarred}