From 995211724dc6670247e1f3d5f8a530fbce5ba068 Mon Sep 17 00:00:00 2001 From: ct Date: Tue, 17 Jun 2025 18:13:10 +0800 Subject: [PATCH] Update --- .../modules/editor/partials/text-sidebar.jsx | 26 ++++++++++++++++--- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/resources/js/modules/editor/partials/text-sidebar.jsx b/resources/js/modules/editor/partials/text-sidebar.jsx index 4c27067..09980a8 100644 --- a/resources/js/modules/editor/partials/text-sidebar.jsx +++ b/resources/js/modules/editor/partials/text-sidebar.jsx @@ -161,22 +161,40 @@ export default function TextSidebar({ isOpen, onClose }) { value={textValue} onChange={handleTextChange} placeholder="Enter your text..." - className="mt-2 text-center" + className="mt-2 border-2 text-center text-nowrap" rows={4} + style={{ + fontFamily: fontFamily, + fontSize: `${fontSize * 0.45}px`, // Better scaling + fontWeight: isBold ? 'bold' : 'normal', + fontStyle: isItalic ? 'italic' : 'normal', + lineHeight: '1.4', + }} /> + {/* Font Fa + {/* Font Family */}