added root styles

added auto editor
cleaned up styles for dagboard
This commit is contained in:
ari committed 2021-12-16 16:41:33 -05:00
1 parent fff15f65ce
commit 1efb04fe68
11 files changed
+328 -36

No files matched your search

+15 -19
View File
@@ -34,24 +34,20 @@ export const SVGBoard: FC<{
// render
return <div className={classes.root} style={{
flexDirection: ratioWbh >= 0.75 ? 'row' : 'column'
}}>
<div className={classes.dag}>
<svg
className={classes.svg}
viewBox={[0, 0, graphWidth, graphHeight].join(" ")}
xmlns="http://www.w3.org/2000/svg"
>
<defs>
<marker id="arrow" viewBox="0 0 10 10" refX="10" refY="5"
markerWidth="6" markerHeight="6"
orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" fill={theme.secondaryAccent} />
</marker>
</defs>
{children}
</svg>
</div>
return <div className={classes.dag}>
<svg
className={classes.svg}
viewBox={[0, 0, graphWidth, graphHeight].join(" ")}
xmlns="http://www.w3.org/2000/svg"
>
<defs>
<marker id="arrow" viewBox="0 0 10 10" refX="10" refY="5"
markerWidth="6" markerHeight="6"
orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" fill={theme.secondaryAccent} />
</marker>
</defs>
{children}
</svg>
</div>
}
+2 -8
View File
@@ -8,18 +8,12 @@ export const useBoardStyles = createAppUseStyles<{
boardHeight: number,
boardWidth: number,
}>(theme => ({
root: {
height: '99%',
width: '99%',
color: theme.primaryAccent,
background: theme.primary,
display: 'flex',
flexDirection: 'row',
},
dag: {
borderWidth: 1,
borderStyle: 'solid',
borderColor: theme.secondaryAccent,
color: theme.primaryAccent,
background: theme.primary,
width: '100%',
height: '100%',
overflow: 'scroll'