tweak design
This commit is contained in:
parent
41a0258fe1
commit
d1266280cb
@ -1,55 +1,59 @@
|
||||
@import "../css/variables.module";
|
||||
|
||||
.mermaid-to-excalidraw-wrapper {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
|
||||
label {
|
||||
font-size: 14px;
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
&-text {
|
||||
.excalidraw {
|
||||
.mermaid-to-excalidraw-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
|
||||
label {
|
||||
font-size: 14px;
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
&-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
textarea {
|
||||
width: 20rem;
|
||||
height: 22rem;
|
||||
resize: none;
|
||||
border: 1px solid var(--ImageExportModal-preview-border);
|
||||
border-radius: 8px;
|
||||
padding: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
&-preview-canvas {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.85rem;
|
||||
|
||||
textarea {
|
||||
width: 20rem;
|
||||
height: 22rem;
|
||||
resize: none;
|
||||
}
|
||||
}
|
||||
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==")
|
||||
left center;
|
||||
|
||||
&-preview-canvas {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 1rem;
|
||||
|
||||
width: 20rem;
|
||||
height: 23.5rem;
|
||||
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==")
|
||||
left center;
|
||||
|
||||
border: 1px solid var(--ImageExportModal-preview-border);
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
&-preview-insert.excalidraw-button {
|
||||
height: 2.5rem;
|
||||
margin-top: 1em;
|
||||
margin-bottom: 0.3em;
|
||||
width: 5rem;
|
||||
background-color: var(--color-primary);
|
||||
&:hover {
|
||||
background-color: var(--color-primary-darke);
|
||||
}
|
||||
&:active {
|
||||
background-color: var(--color-primary-darkest);
|
||||
border: 1px solid var(--ImageExportModal-preview-border);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
color: $oc-white;
|
||||
&-preview-insert.excalidraw-button {
|
||||
height: 2.5rem;
|
||||
margin-top: 1em;
|
||||
margin-bottom: 0.3em;
|
||||
width: 5rem;
|
||||
background-color: var(--color-primary);
|
||||
&:hover {
|
||||
background-color: var(--color-primary-darker);
|
||||
}
|
||||
&:active {
|
||||
background-color: var(--color-primary-darkest);
|
||||
}
|
||||
|
||||
color: $oc-white;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -151,14 +151,25 @@ const MermaidToExcalidraw = ({
|
||||
return (
|
||||
<Dialog onCloseRequest={onClose} title="Mermaid to Excalidraw">
|
||||
<div className="mermaid-to-excalidraw-wrapper">
|
||||
<div className="mermaid-to-excalidraw-wrapper-text">
|
||||
<div
|
||||
className="mermaid-to-excalidraw-wrapper-text"
|
||||
style={{ display: "flex", flexDirection: "column" }}
|
||||
>
|
||||
<label>Describe</label>
|
||||
<textarea
|
||||
style={{
|
||||
padding: "0.85rem",
|
||||
borderRadius: "8px",
|
||||
border: "1px solid var(--ImageExportModal-preview-border)",
|
||||
}}
|
||||
onChange={(event) => setText(event.target.value)}
|
||||
value={text}
|
||||
/>
|
||||
</div>
|
||||
<div className="mermaid-to-excalidraw-wrapper-preview">
|
||||
<div
|
||||
className="mermaid-to-excalidraw-wrapper-preview"
|
||||
style={{ display: "flex", flexDirection: "column" }}
|
||||
>
|
||||
<label>Preview</label>
|
||||
<div
|
||||
className="mermaid-to-excalidraw-wrapper-preview-canvas"
|
||||
|
Loading…
x
Reference in New Issue
Block a user