구분선 리사이즈 개선
This commit is contained in:
@@ -562,11 +562,17 @@ export function ReportDesignerRightPanel() {
|
||||
<Label className="text-xs">방향</Label>
|
||||
<Select
|
||||
value={selectedComponent.orientation || "horizontal"}
|
||||
onValueChange={(value) =>
|
||||
onValueChange={(value) => {
|
||||
// 방향 변경 시 너비/높이 스왑
|
||||
const isToVertical = value === "vertical";
|
||||
const currentWidth = selectedComponent.width;
|
||||
const currentHeight = selectedComponent.height;
|
||||
updateComponent(selectedComponent.id, {
|
||||
orientation: value as "horizontal" | "vertical",
|
||||
})
|
||||
}
|
||||
width: isToVertical ? 10 : currentWidth > 50 ? currentWidth : 300,
|
||||
height: isToVertical ? currentWidth > 50 ? currentWidth : 300 : 10,
|
||||
});
|
||||
}}
|
||||
>
|
||||
<SelectTrigger className="h-8">
|
||||
<SelectValue />
|
||||
|
||||
Reference in New Issue
Block a user