wip fix style

This commit is contained in:
Rizky 2023-12-25 11:56:45 +07:00
parent 9bf04504e8
commit 0532332a3a
3 changed files with 3 additions and 19 deletions

View File

@ -63,27 +63,13 @@ export const EdSidePropComp: FC<{ meta: IMeta }> = ({ meta }) => {
<div className="flex flex-col text-[12px] flex-1">
<div className="flex border-b p-1 h-[28px] items-center bg-slate-50 justify-between select-none">
<div
className="flex cursor-pointer items-center"
className="border px-1 cursor-pointer bg-white hover:bg-blue-100"
onClick={() => {
p.ui.side.prop = false;
p.render();
}}
>
<svg
width="15"
height="15"
viewBox="0 0 15 15"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M8.84182 3.13514C9.04327 3.32401 9.05348 3.64042 8.86462 3.84188L5.43521 7.49991L8.86462 11.1579C9.05348 11.3594 9.04327 11.6758 8.84182 11.8647C8.64036 12.0535 8.32394 12.0433 8.13508 11.8419L4.38508 7.84188C4.20477 7.64955 4.20477 7.35027 4.38508 7.15794L8.13508 3.15794C8.32394 2.95648 8.64036 2.94628 8.84182 3.13514Z"
fill="currentColor"
fillRule="evenodd"
clipRule="evenodd"
></path>
</svg>
<div>Style</div>
<div>Edit Style</div>
</div>
<div
className="border px-1 cursor-pointer bg-white hover:bg-blue-100"
@ -97,7 +83,7 @@ export const EdSidePropComp: FC<{ meta: IMeta }> = ({ meta }) => {
}
}}
>
Back to Instance
Edit Instance
</div>
</div>
<div className="flex flex-1 relative overflow-y-auto overflow-x-hidden">

View File

@ -26,7 +26,6 @@ export const edActionDetach = (p: PG, item: IItem) => {
const nmap = new Y.Map();
syncronize(nmap, comp);
mitem.parent.insert(k, [nmap]);
console.log(nmap.toJSON());
}
});
});

View File

@ -34,7 +34,6 @@ export const edActionNewComp = (
});
}
console.log(newcomp);
if (newcomp && newcomp.snapshot) {
await loadCompSnapshot(p, newcomp.id, newcomp.snapshot, newcomp.meta);
await treeRebuild(p);