From 76b2478fe2c155ffc1953ee4b06c95468897110e Mon Sep 17 00:00:00 2001 From: YEONGJAE LEE <71895560+lee0jae330@users.noreply.github.com> Date: Wed, 4 Dec 2024 18:41:29 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20css=ED=81=B4=EB=9E=98?= =?UTF-8?q?=EC=8A=A4=20=EC=82=AD=EC=A0=9C=20=ED=9B=84=20=EB=98=91=EA=B0=99?= =?UTF-8?q?=EC=9D=80=20=EC=9D=B4=EB=A6=84=EC=9C=BC=EB=A1=9C=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1=20=ED=9B=84=20css=20=EB=B6=80=EC=97=AC=20=EC=8B=9C=20?= =?UTF-8?q?=EC=97=90=EB=9F=AC=20=EB=B0=9C=EC=83=9D=ED=95=98=EB=8A=94=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95=20(#236)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/client/src/core/styleFlyout.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/core/styleFlyout.ts b/apps/client/src/core/styleFlyout.ts index a07c1aca..b4a124e7 100644 --- a/apps/client/src/core/styleFlyout.ts +++ b/apps/client/src/core/styleFlyout.ts @@ -240,8 +240,6 @@ export default class StyleFlyout extends FixedFlyout { // 새롭게 생성되는 CSS 클래스 블록 정보 if (!Blockly.Blocks[createClassType!]) { - useCssPropsStore.getState().addNewCssClass(createClassType); - useWorkspaceChangeStatusStore.getState().setIsBlockChanged(true); Blockly.Blocks[createClassType!] = { init: function () { this.appendDummyInput().appendField( @@ -254,6 +252,8 @@ export default class StyleFlyout extends FixedFlyout { }; } + useCssPropsStore.getState().addNewCssClass(createClassType); + useWorkspaceChangeStatusStore.getState().setIsBlockChanged(true); // 기존 블록들이 있는 cssStyleToolboxConfig.ts에 새 블록 추가 cssStyleToolboxConfig!.contents = [ ...existingBlocks,