1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 10:46:32 +00:00

update color option and enhance UX of FolderItem

This commit is contained in:
Rokt33r
2016-05-08 03:03:26 +09:00
parent 70244f79ba
commit 293c286d22
2 changed files with 10 additions and 10 deletions

View File

@@ -89,6 +89,7 @@ class FolderItem extends React.Component {
name: this.props.folder.name
}, () => {
this.refs.nameInput.focus()
this.refs.nameInput.select()
})
}
@@ -124,7 +125,9 @@ class FolderItem extends React.Component {
return (
<div className='FolderItem'
styleName='root'>
styleName='root'
onContextMenu={(e) => this.handleContextButtonClick(e)}
>
<div styleName='label'>
<i className='fa fa-cube' style={{color: folder.color}}/> {folder.name}
</div>
@@ -181,7 +184,6 @@ class FolderItem extends React.Component {
return (
<div className='FolderItem'
styleName='root'
onContextMenu={(e) => this.handleContextButtonClick(e)}
>
<input styleName='nameInput'
ref='nameInput'