feat: Add BlockEditor component for managing block styles and properties in the simulation dashboard.
This commit is contained in:
@@ -305,6 +305,7 @@ const BlockEditor: React.FC<BlockEditorProps> = ({
|
|||||||
|
|
||||||
<div className="design-section appearance">
|
<div className="design-section appearance">
|
||||||
<div className="section-header">Appearance</div>
|
<div className="section-header">Appearance</div>
|
||||||
|
|
||||||
<div className="design-datas-wrapper">
|
<div className="design-datas-wrapper">
|
||||||
{currentBlock.positionType === "absolute" && (
|
{currentBlock.positionType === "absolute" && (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -709,6 +709,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.appearance {
|
||||||
|
.design-datas-wrapper {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
gap: 16px 16px;
|
||||||
|
|
||||||
|
.value-field-container {
|
||||||
|
label {
|
||||||
|
width: 80%;
|
||||||
|
text-wrap: nowrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&.element-editor-panel {
|
&.element-editor-panel {
|
||||||
right: 20px;
|
right: 20px;
|
||||||
top: 50px;
|
top: 50px;
|
||||||
@@ -722,21 +738,6 @@
|
|||||||
top: 80px;
|
top: 80px;
|
||||||
right: 40px;
|
right: 40px;
|
||||||
|
|
||||||
.appearance {
|
|
||||||
.design-datas-wrapper {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(2, 1fr);
|
|
||||||
gap: 16px 16px;
|
|
||||||
|
|
||||||
.value-field-container {
|
|
||||||
label {
|
|
||||||
width: 80%;
|
|
||||||
text-wrap: nowrap;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.swap-button {
|
.swap-button {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #ccacff;
|
color: #ccacff;
|
||||||
|
|||||||
Reference in New Issue
Block a user