From c38b6ad4838f20b9f724d2257ec36989fbab6e57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Sat, 11 Oct 2025 20:47:15 +0800 Subject: [PATCH] Enhance styling and structure of ChatInputBox and PcTemplateModal components; add custom scrollbar styles and improve layout responsiveness. --- app/globals.css | 35 +- components/ChatInputBox/H5TemplateDrawer.tsx | 2 +- components/ChatInputBox/PcTemplateModal.tsx | 782 +++++++++--------- components/script-renderer/ScriptRenderer.tsx | 12 +- 4 files changed, 432 insertions(+), 399 deletions(-) diff --git a/app/globals.css b/app/globals.css index 32576a1..a3954c9 100644 --- a/app/globals.css +++ b/app/globals.css @@ -307,6 +307,39 @@ body { } } -.mobile-textarea, .mobile-input { +.mobile-textarea, +.mobile-input { font-size: 16px !important; +} + +.custom-scrollbar { + scrollbar-width: thin; + scrollbar-color: transparent transparent; +} + +.custom-scrollbar:hover { + scrollbar-color: rgba(156, 163, 175, 0.2) rgba(0, 0, 0, 0); +} + +/* Webkit browsers (Chrome, Safari) */ +.custom-scrollbar::-webkit-scrollbar { + width: 6px; + height: 6px; +} + +.custom-scrollbar::-webkit-scrollbar-track { + background: transparent; +} + +.custom-scrollbar::-webkit-scrollbar-thumb { + background: transparent; + border-radius: 3px; +} + +.custom-scrollbar:hover::-webkit-scrollbar-thumb { + background: rgba(156, 163, 175, 0.5); +} + +.custom-scrollbar:hover::-webkit-scrollbar-thumb:hover { + background: rgba(156, 163, 175, 0.7); } \ No newline at end of file diff --git a/components/ChatInputBox/H5TemplateDrawer.tsx b/components/ChatInputBox/H5TemplateDrawer.tsx index 8f2bea5..aa4cff1 100644 --- a/components/ChatInputBox/H5TemplateDrawer.tsx +++ b/components/ChatInputBox/H5TemplateDrawer.tsx @@ -570,7 +570,7 @@ export const H5TemplateDrawer = ({ data-alt="items-section-title" className="text-base font-semibold text-white mb-3" > - input Configuration + Input Configuration