1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-26 15:26:19 +00:00

Add participant @ (#3907)

* add related users

add react mention

* detail panel @ participant

* update seafile api

* change catch error
This commit is contained in:
Michael An
2019-07-24 21:04:47 +08:00
committed by Daniel Pan
parent 3c1491e3aa
commit e9ea1e56ba
7 changed files with 255 additions and 90 deletions

View File

@@ -0,0 +1,69 @@
const defaultStyle = {
control: {
backgroundColor: '#fff',
fontSize: 14,
fontWeight: 'normal',
},
highlighter: {
overflow: 'hidden',
},
input: {
margin: 0,
},
'&singleLine': {
control: {
display: 'inline-block',
width: 130,
},
highlighter: {
padding: 1,
border: '2px inset transparent',
},
input: {
padding: 1,
border: '2px inset',
},
},
'&multiLine': {
control: {
fontFamily: 'monospace',
border: '1px solid silver',
},
highlighter: {
padding: 9,
},
input: {
padding: 5,
minHeight: 90,
height: 90,
outline: 0,
border: '1px solid #e6e6dd',
backgroundColor: '#fff',
overfflowY: 'auto'
},
},
suggestions: {
list: {
backgroundColor: 'white',
border: '1px solid rgba(0,0,0,0.15)',
fontSize: 14,
maxHeight: 200,
overflow: 'auto',
position: 'absolute',
bottom: 14,
},
item: {
padding: '5px 15px',
borderBottom: '1px solid rgba(0,0,0,0.15)',
'&focused': {
backgroundColor: '#cee4e5',
},
},
},
};
const defaultMentionStyle = {
backgroundColor: '#cee4e5'
};
export { defaultStyle, defaultMentionStyle };