diff --git a/browser/main/Detail/FolderSelect.js b/browser/main/Detail/FolderSelect.js index 094db239..bec02f3d 100644 --- a/browser/main/Detail/FolderSelect.js +++ b/browser/main/Detail/FolderSelect.js @@ -262,13 +262,11 @@ class FolderSelect extends React.Component { :
- {currentOption.folder.name} - in {currentOption.storage.name} + {currentOption.folder.name} /
-
} diff --git a/browser/main/Detail/FolderSelect.styl b/browser/main/Detail/FolderSelect.styl index 0abe6589..16750fd7 100644 --- a/browser/main/Detail/FolderSelect.styl +++ b/browser/main/Detail/FolderSelect.styl @@ -7,29 +7,27 @@ transition 0.15s user-select none &:hover - background-color white - border-color $ui-borderColor + background-color $ui-button--hover-backgroundColor .root--search, .root--focus @extend .root - background-color white + background-color $ui-noteDetail-backgroundColor = #F4F4F4 border-color $ui-input--focus-borderColor + width 100px &:hover - background-color white border-color $ui-input--focus-borderColor .idle position relative cursor pointer + .idle-label - absolute left top - padding 0 0 0 5px right 20px overflow ellipsis .idle-label-name - border-left solid 4px transparent - padding 2px 5px + padding 2px + .idle-label-name-surfix font-size 10px color $ui-inactive-text-color @@ -60,9 +58,9 @@ max-height 450px overflow auto z-index 200 + border $ui-border background-color white border-radius 2px - box-shadow 2px 2px 10px gray .search-optionList-item height 34px @@ -115,8 +113,8 @@ body[data-theme="dark"] .search-optionList color white + border-color $ui-dark-borderColor background-color $ui-dark-button--hover-backgroundColor - box-shadow 2px 2px 10px black .search-optionList-item &:hover diff --git a/browser/main/Detail/MarkdownNoteDetail.js b/browser/main/Detail/MarkdownNoteDetail.js index dfff72d7..65821962 100644 --- a/browser/main/Detail/MarkdownNoteDetail.js +++ b/browser/main/Detail/MarkdownNoteDetail.js @@ -4,6 +4,7 @@ import styles from './MarkdownNoteDetail.styl' import MarkdownEditor from 'browser/components/MarkdownEditor' import StarButton from './StarButton' import TagSelect from './TagSelect' +import FolderSelect from './FolderSelect' import dataApi from 'browser/main/lib/dataApi' import { hashHistory } from 'react-router' import ee from 'browser/main/lib/eventEmitter' @@ -204,7 +205,7 @@ class MarkdownNoteDetail extends React.Component { } render () { - let { config } = this.props + let { data, config } = this.props let { note } = this.state return ( @@ -218,6 +219,15 @@ class MarkdownNoteDetail extends React.Component { onClick={(e) => this.handleStarButtonClick(e)} isActive={note.isStarred} /> +
+ this.handleFolderChange(e)} + /> +
+ this.handleStarButtonClick(e)} isActive={note.isStarred} /> +
+ this.handleFolderChange(e)} + /> +
+