mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-20 05:12:54 +08:00
code cleanup
This commit is contained in:
parent
db6f59c195
commit
dcb0b75ebe
@ -11,11 +11,7 @@ const StyledTextWrapper = styled.div`
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
stroke: white !important;
|
||||
}
|
||||
`;
|
||||
|
||||
const StyledText = styled.pre<{ width: number; height: number }>`
|
||||
|
@ -111,18 +111,18 @@ export const LiveEditor: React.FC<{
|
||||
<Canvas
|
||||
ref={canvasRef}
|
||||
nodes={nodes}
|
||||
node={CustomNode}
|
||||
edges={edges}
|
||||
layoutOptions={{
|
||||
"elk.direction": config.layout,
|
||||
}}
|
||||
maxWidth={20000}
|
||||
maxHeight={20000}
|
||||
center={false}
|
||||
zoomable={false}
|
||||
layoutOptions={{
|
||||
"elk.direction": config.layout,
|
||||
}}
|
||||
fit
|
||||
readonly
|
||||
animated
|
||||
node={CustomNode}
|
||||
/>
|
||||
</TransformComponent>
|
||||
</TransformWrapper>
|
||||
|
Loading…
x
Reference in New Issue
Block a user