화면 여백에 최솟값 0 설정
This commit is contained in:
parent
99c0960325
commit
e1a032933d
|
|
@ -2589,12 +2589,13 @@ export function ReportDesignerRightPanel() {
|
|||
<Label className="text-xs">상단</Label>
|
||||
<Input
|
||||
type="number"
|
||||
min={0}
|
||||
value={currentPage.margins.top}
|
||||
onChange={(e) =>
|
||||
updatePageSettings(currentPageId, {
|
||||
margins: {
|
||||
...currentPage.margins,
|
||||
top: Number(e.target.value),
|
||||
top: Math.max(0, Number(e.target.value)),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
@ -2605,12 +2606,13 @@ export function ReportDesignerRightPanel() {
|
|||
<Label className="text-xs">하단</Label>
|
||||
<Input
|
||||
type="number"
|
||||
min={0}
|
||||
value={currentPage.margins.bottom}
|
||||
onChange={(e) =>
|
||||
updatePageSettings(currentPageId, {
|
||||
margins: {
|
||||
...currentPage.margins,
|
||||
bottom: Number(e.target.value),
|
||||
bottom: Math.max(0, Number(e.target.value)),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
@ -2621,12 +2623,13 @@ export function ReportDesignerRightPanel() {
|
|||
<Label className="text-xs">좌측</Label>
|
||||
<Input
|
||||
type="number"
|
||||
min={0}
|
||||
value={currentPage.margins.left}
|
||||
onChange={(e) =>
|
||||
updatePageSettings(currentPageId, {
|
||||
margins: {
|
||||
...currentPage.margins,
|
||||
left: Number(e.target.value),
|
||||
left: Math.max(0, Number(e.target.value)),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
@ -2637,12 +2640,13 @@ export function ReportDesignerRightPanel() {
|
|||
<Label className="text-xs">우측</Label>
|
||||
<Input
|
||||
type="number"
|
||||
min={0}
|
||||
value={currentPage.margins.right}
|
||||
onChange={(e) =>
|
||||
updatePageSettings(currentPageId, {
|
||||
margins: {
|
||||
...currentPage.margins,
|
||||
right: Number(e.target.value),
|
||||
right: Math.max(0, Number(e.target.value)),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue