컴포넌트 스타일링 구현
This commit is contained in:
@@ -104,6 +104,11 @@ export function ReportPreviewModal({ isOpen, onClose }: ReportPreviewModalProps)
|
||||
top: `${component.y}px`,
|
||||
width: `${component.width}px`,
|
||||
height: `${component.height}px`,
|
||||
backgroundColor: component.backgroundColor,
|
||||
border: component.borderWidth
|
||||
? `${component.borderWidth}px solid ${component.borderColor}`
|
||||
: "none",
|
||||
padding: "8px",
|
||||
}}
|
||||
>
|
||||
{component.type === "text" && (
|
||||
@@ -111,7 +116,8 @@ export function ReportPreviewModal({ isOpen, onClose }: ReportPreviewModalProps)
|
||||
style={{
|
||||
fontSize: `${component.fontSize}px`,
|
||||
color: component.fontColor,
|
||||
backgroundColor: component.backgroundColor,
|
||||
fontWeight: component.fontWeight,
|
||||
textAlign: component.textAlign as "left" | "center" | "right",
|
||||
}}
|
||||
>
|
||||
{displayValue}
|
||||
@@ -120,11 +126,11 @@ export function ReportPreviewModal({ isOpen, onClose }: ReportPreviewModalProps)
|
||||
|
||||
{component.type === "label" && (
|
||||
<div
|
||||
className="font-semibold"
|
||||
style={{
|
||||
fontSize: `${component.fontSize}px`,
|
||||
color: component.fontColor,
|
||||
backgroundColor: component.backgroundColor,
|
||||
fontWeight: component.fontWeight,
|
||||
textAlign: component.textAlign as "left" | "center" | "right",
|
||||
}}
|
||||
>
|
||||
{displayValue}
|
||||
|
||||
Reference in New Issue
Block a user