diff --git a/Backers.md b/Backers.md index afbdfc5e..6c51d8dc 100644 --- a/Backers.md +++ b/Backers.md @@ -9,16 +9,20 @@ Boostnote is an open source project. It's an independent project with its ongoin ## Backers via OpenCollective -- [Kazu Yokomizo](https://twitter.com/kazup_bot) - $20 +- [Ralph03](https://opencollective.com/ralph03) - $24 - [Nikolas Dan](https://opencollective.com/nikolas-dan) - $20 - [tatoosh11](https://twitter.com/ta11) - $10 +- [Alexander Borovkov](https://opencollective.com/alexander-borovkov) - $10 + - [Yeojong Kim](https://twitter.com/yeojoy) - $5 - [Scotia Draven](https://opencollective.com/scotia-draven) - $5 +- [spoonhoop](https://opencollective.com/spoonhoop) - $5 + ## Backers via Bountysource https://salt.bountysource.com/teams/boostnote diff --git a/browser/components/NoteItem.styl b/browser/components/NoteItem.styl index 212fedec..d410a7cf 100644 --- a/browser/components/NoteItem.styl +++ b/browser/components/NoteItem.styl @@ -149,13 +149,15 @@ body[data-theme="white"] .item background-color $ui-white-noteList-backgroundColor &:hover - background-color alpha($ui-button--active-backgroundColor, 40%) + background-color alpha($ui-button--active-backgroundColor, 60%) &:active background-color $ui-button--active-backgroundColor .item--active @extend .item background-color $ui-button--active-backgroundColor + &:hover + background-color alpha($ui-button--active-backgroundColor, 60%) body[data-theme="dark"] .root @@ -208,7 +210,7 @@ body[data-theme="dark"] background-color alpha(white, 10%) color $ui-dark-text-color &:hover - background-color alpha($ui-dark-button--active-backgroundColor, 50%) + background-color alpha($ui-dark-button--active-backgroundColor, 60%) color #c0392b .item-bottom-tagList-item background-color alpha(#fff, 20%) diff --git a/browser/components/NoteItemSimple.styl b/browser/components/NoteItemSimple.styl index 1a84f26c..fdfed1ab 100644 --- a/browser/components/NoteItemSimple.styl +++ b/browser/components/NoteItemSimple.styl @@ -71,13 +71,15 @@ body[data-theme="white"] .item-simple background-color $ui-white-noteList-backgroundColor &:hover - background-color alpha($ui-button--active-backgroundColor, 40%) + background-color alpha($ui-button--active-backgroundColor, 60%) &:active background-color $ui-button--active-backgroundColor .item-simple--active @extend .item-simple background-color $ui-button--active-backgroundColor + &:hover + background-color alpha($ui-button--active-backgroundColor, 60%) body[data-theme="dark"] .root @@ -127,7 +129,7 @@ body[data-theme="dark"] background-color alpha(white, 10%) color $ui-dark-text-color &:hover - background-color alpha($ui-dark-button--active-backgroundColor, 50%) + background-color alpha($ui-dark-button--active-backgroundColor, 60%) color #c0392b .item-simple-bottom-tagList-item background-color alpha(#fff, 20%) diff --git a/browser/components/TodoListPercentage.styl b/browser/components/TodoListPercentage.styl index 4881fcd1..065b95aa 100644 --- a/browser/components/TodoListPercentage.styl +++ b/browser/components/TodoListPercentage.styl @@ -1,7 +1,7 @@ .percentageBar position absolute - top 58px - right: 0px + top 40px + right 0px left 0px background-color #DADFE1 width 100% diff --git a/browser/main/Detail/DetailVars.styl b/browser/main/Detail/DetailVars.styl index ad492c54..42185160 100644 --- a/browser/main/Detail/DetailVars.styl +++ b/browser/main/Detail/DetailVars.styl @@ -3,7 +3,7 @@ */ // Margin on the left side and the right side for NoteDetail component. -$note-detail-left-margin = 25px -$note-detail-right-margin = 25px +$note-detail-left-margin = 50px +$note-detail-right-margin = 70px $note-detail-box-shadow = 2px 0 15px -8px #b1b1b1 inset diff --git a/browser/main/Detail/InfoButton.js b/browser/main/Detail/InfoButton.js index e4a9dedc..ce9f35de 100644 --- a/browser/main/Detail/InfoButton.js +++ b/browser/main/Detail/InfoButton.js @@ -8,7 +8,7 @@ const InfoButton = ({ ) diff --git a/browser/main/Detail/InfoButton.styl b/browser/main/Detail/InfoButton.styl index 45c378fe..f5ed4c6a 100644 --- a/browser/main/Detail/InfoButton.styl +++ b/browser/main/Detail/InfoButton.styl @@ -1,5 +1,5 @@ .control-infoButton - float right + top 10px topBarButtonLight() .control-infoPanel diff --git a/browser/main/Detail/InfoPanel.styl b/browser/main/Detail/InfoPanel.styl index 62ec529e..980df6d4 100644 --- a/browser/main/Detail/InfoPanel.styl +++ b/browser/main/Detail/InfoPanel.styl @@ -11,7 +11,7 @@ .control-infoButton-panel z-index 200 margin-top 38px - margin-left -140px + right 0px position absolute padding 20px 25px 0 25px width 300px @@ -33,7 +33,7 @@ .control-infoButton-panel-trash z-index 200 margin-top 45px - margin-left -190px + right 0px position absolute padding 20px 25px 0 25px width 300px diff --git a/browser/main/Detail/MarkdownNoteDetail.js b/browser/main/Detail/MarkdownNoteDetail.js index bc407b62..a427198b 100644 --- a/browser/main/Detail/MarkdownNoteDetail.js +++ b/browser/main/Detail/MarkdownNoteDetail.js @@ -15,6 +15,7 @@ import _ from 'lodash' import { findNoteTitle } from 'browser/lib/findNoteTitle' import AwsMobileAnalyticsConfig from 'browser/main/lib/AwsMobileAnalyticsConfig' import TrashButton from './TrashButton' +import PermanentDeleteButton from './PermanentDeleteButton' import InfoButton from './InfoButton' import InfoPanel from './InfoPanel' import InfoPanelTrashed from './InfoPanelTrashed' @@ -231,7 +232,7 @@ class MarkdownNoteDetail extends React.Component { } getToggleLockButton () { - return this.state.isLocked ? 'fa-lock' : 'fa-unlock' + return this.state.isLocked ? 'fa-eye-slash' : 'fa-eye' } handleDeleteKeyDown (e) { @@ -285,7 +286,7 @@ class MarkdownNoteDetail extends React.Component { />
- this.handleTrashButtonClick(e)} /> + this.handleTrashButtonClick(e)} /> this.handleInfoButtonClick(e)} /> @@ -302,10 +303,6 @@ class MarkdownNoteDetail extends React.Component { const detailTopBar =
- this.handleStarButtonClick(e)} - isActive={note.isStarred} - />
+ this.handleInfoButtonClick(e)} + /> + + this.handleStarButtonClick(e)} + isActive={note.isStarred} + /> + {(() => { const faClassName = `fa ${this.getToggleLockButton()}` const lockButtonComponent = @@ -333,23 +339,20 @@ class MarkdownNoteDetail extends React.Component { onMouseDown={(e) => this.handleLockButtonMouseDown(e)} > - - {this.state.isLocked ? 'Unlock Editor' : 'Keep Editor Locked'} - return ( this.state.isLockButtonShown ? lockButtonComponent : '' ) })()} - this.handleTrashButtonClick(e)} /> + - this.handleInfoButtonClick(e)} - /> + + this.handleTrashButtonClick(e)} /> + ( + +) + +PermanentDeleteButton.propTypes = { + onClick: PropTypes.func.isRequired +} + +export default CSSModules(PermanentDeleteButton, styles) diff --git a/browser/main/Detail/SnippetNoteDetail.js b/browser/main/Detail/SnippetNoteDetail.js index ad376e3a..3ef08340 100644 --- a/browser/main/Detail/SnippetNoteDetail.js +++ b/browser/main/Detail/SnippetNoteDetail.js @@ -583,10 +583,6 @@ class SnippetNoteDetail extends React.Component { const detailTopBar =
- this.handleStarButtonClick(e)} - isActive={note.isStarred} - />
- this.handleTrashButtonClick(e)} /> - this.handleInfoButtonClick(e)} /> + + this.handleStarButtonClick(e)} + isActive={note.isStarred} + /> + + + + this.handleTrashButtonClick(e)} />