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:
69
frontend/src/css/react-mentions-default-style.js
vendored
Normal file
69
frontend/src/css/react-mentions-default-style.js
vendored
Normal 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 };
|
Reference in New Issue
Block a user