From 9fb9dfb905a56d13c088540e8fa1268f901fde10 Mon Sep 17 00:00:00 2001 From: "Apple\\Apple" Date: Sun, 1 Jun 2025 17:31:13 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style(ui):=20hide=20scrollbars?= =?UTF-8?q?=20across=20chat=20interface=20and=20request=20editor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hide y-axis scrollbars to provide a cleaner UI experience while maintaining scroll functionality through mouse wheel and keyboard navigation. Changes include: - Hide scrollbars in CustomRequestEditor TextArea component - Hide scrollbars in chat container and all related chat components - Hide scrollbars in thinking content areas - Add cross-browser compatibility for scrollbar hiding - Maintain scroll functionality while improving visual aesthetics Components affected: - CustomRequestEditor.js: Added custom-request-textarea class - index.css: Updated scrollbar styles for chat, thinking, and editor areas The interface now provides a more streamlined appearance consistent with modern UI design patterns while preserving all interactive capabilities. --- web/src/components/playground/ChatArea.js | 2 +- .../playground/CustomRequestEditor.js | 9 +-- web/src/index.css | 75 ++++++++++++------- web/src/pages/Playground/index.js | 4 +- 4 files changed, 50 insertions(+), 40 deletions(-) diff --git a/web/src/components/playground/ChatArea.js b/web/src/components/playground/ChatArea.js index 6b42040d..e4d73297 100644 --- a/web/src/components/playground/ChatArea.js +++ b/web/src/components/playground/ChatArea.js @@ -39,7 +39,7 @@ const ChatArea = ({ return ( {/* 聊天头部 */} {styleState.isMobile ? ( diff --git a/web/src/components/playground/CustomRequestEditor.js b/web/src/components/playground/CustomRequestEditor.js index 504ba261..9b11b4f4 100644 --- a/web/src/components/playground/CustomRequestEditor.js +++ b/web/src/components/playground/CustomRequestEditor.js @@ -1,12 +1,10 @@ import React, { useState, useEffect } from 'react'; import { - Card, TextArea, Typography, Button, Switch, Banner, - Tag, } from '@douyinfe/semi-ui'; import { Code, @@ -104,11 +102,6 @@ const CustomRequestEditor = ({ 自定义请求体模式 - {customRequestMode && ( - - 已启用 - - )}