mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-20 11:31:47 +08:00
refactor(core): doc property (#8465)
doc property upgraded to use orm. The visibility of the property are simplified to three types: `always show`, `always hide`, `hide when empty`, and the default is `always show`.  Added a sidebar view to manage properties  new property ui in workspace settings  Property lists can be collapsed 
This commit is contained in:
@@ -49,6 +49,12 @@ export const treeLine = style({
|
||||
height: 2,
|
||||
right: 0,
|
||||
},
|
||||
|
||||
selectors: {
|
||||
['&[data-no-terminal="true"]::before']: {
|
||||
display: 'none',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export const lineAboveStyles = style({
|
||||
@@ -143,7 +149,7 @@ export const left = style({
|
||||
|
||||
export const edgeLine = style({
|
||||
vars: {
|
||||
[terminalSize]: '8px',
|
||||
[terminalSize]: '6px',
|
||||
},
|
||||
display: 'block',
|
||||
position: 'absolute',
|
||||
@@ -156,11 +162,17 @@ export const edgeLine = style({
|
||||
// Terminal
|
||||
'::before': {
|
||||
content: '""',
|
||||
width: terminalSize,
|
||||
height: terminalSize,
|
||||
width: 0,
|
||||
height: 0,
|
||||
boxSizing: 'border-box',
|
||||
position: 'absolute',
|
||||
border: `${terminalSize} solid ${cssVar('--affine-primary-color')}`,
|
||||
borderRadius: '50%',
|
||||
},
|
||||
|
||||
selectors: {
|
||||
['&[data-no-terminal="true"]::before']: {
|
||||
display: 'none',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user