mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
update color option and enhance UX of FolderItem
This commit is contained in:
@@ -1,22 +1,20 @@
|
|||||||
const consts = {
|
const consts = {
|
||||||
FOLDER_COLORS: [
|
FOLDER_COLORS: [
|
||||||
'#3460C7',
|
'#E10051',
|
||||||
'#2BA5F7',
|
|
||||||
'#FF8E00',
|
'#FF8E00',
|
||||||
'#E8D252',
|
'#E8D252',
|
||||||
'#3FD941',
|
'#3FD941',
|
||||||
'#1FAD85',
|
'#30D5C8',
|
||||||
'#E10051',
|
'#2BA5F7',
|
||||||
'#B013A4'
|
'#B013A4'
|
||||||
],
|
],
|
||||||
FOLDER_COLOR_NAMES: [
|
FOLDER_COLOR_NAMES: [
|
||||||
'Cerulean Blue',
|
'Razzmatazz',
|
||||||
'Dodger Blue',
|
|
||||||
'Pizazz',
|
'Pizazz',
|
||||||
'Confetti',
|
'Confetti',
|
||||||
'Emerald',
|
'Emerald',
|
||||||
'Mountain Meadow',
|
'Turquoise',
|
||||||
'Razzmatazz',
|
'Dodger Blue',
|
||||||
'Violet Eggplant'
|
'Violet Eggplant'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ class FolderItem extends React.Component {
|
|||||||
name: this.props.folder.name
|
name: this.props.folder.name
|
||||||
}, () => {
|
}, () => {
|
||||||
this.refs.nameInput.focus()
|
this.refs.nameInput.focus()
|
||||||
|
this.refs.nameInput.select()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,7 +125,9 @@ class FolderItem extends React.Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='FolderItem'
|
<div className='FolderItem'
|
||||||
styleName='root'>
|
styleName='root'
|
||||||
|
onContextMenu={(e) => this.handleContextButtonClick(e)}
|
||||||
|
>
|
||||||
<div styleName='label'>
|
<div styleName='label'>
|
||||||
<i className='fa fa-cube' style={{color: folder.color}}/> {folder.name}
|
<i className='fa fa-cube' style={{color: folder.color}}/> {folder.name}
|
||||||
</div>
|
</div>
|
||||||
@@ -181,7 +184,6 @@ class FolderItem extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<div className='FolderItem'
|
<div className='FolderItem'
|
||||||
styleName='root'
|
styleName='root'
|
||||||
onContextMenu={(e) => this.handleContextButtonClick(e)}
|
|
||||||
>
|
>
|
||||||
<input styleName='nameInput'
|
<input styleName='nameInput'
|
||||||
ref='nameInput'
|
ref='nameInput'
|
||||||
|
|||||||
Reference in New Issue
Block a user