feat: Add BlockEditor component for managing block styles and properties in the simulation dashboard.

This commit is contained in:
2025-12-20 17:41:39 +05:30
parent 9a4edf07e5
commit 8df26eeb9c
2 changed files with 17 additions and 15 deletions

View File

@@ -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" && (
<> <>

View File

@@ -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;