diff --git a/web/src/components/playground/ImageUrlInput.js b/web/src/components/playground/ImageUrlInput.js index 86ff9811..2b8fb854 100644 --- a/web/src/components/playground/ImageUrlInput.js +++ b/web/src/components/playground/ImageUrlInput.js @@ -61,7 +61,7 @@ const ImageUrlInput = ({ imageUrls, imageEnabled, onImageUrlsChange, onImageEnab type="primary" onClick={handleAddImageUrl} className="!rounded-full !w-4 !h-4 !p-0 !min-w-0" - disabled={!imageEnabled || imageUrls.length >= 5 || disabled} + disabled={!imageEnabled || disabled} /> @@ -72,15 +72,15 @@ const ImageUrlInput = ({ imageUrls, imageEnabled, onImageUrlsChange, onImageEnab ) : imageUrls.length === 0 ? ( - {disabled ? '图片功能在自定义请求体模式下不可用' : '点击 + 按钮添加图片URL,支持最多5张图片'} + {disabled ? '图片功能在自定义请求体模式下不可用' : '点击 + 按钮添加图片URL进行多模态对话'} ) : ( - 已添加 {imageUrls.length}/5 张图片{disabled ? ' (自定义模式下不可用)' : ''} + 已添加 {imageUrls.length} 张图片{disabled ? ' (自定义模式下不可用)' : ''} )} -
+
{imageUrls.map((url, index) => (
diff --git a/web/src/index.css b/web/src/index.css index f8b8e011..417fdd84 100644 --- a/web/src/index.css +++ b/web/src/index.css @@ -236,6 +236,25 @@ code { scrollbar-width: none; } +/* 图片列表滚动条样式 */ +.image-list-scroll::-webkit-scrollbar { + width: 6px; + height: 6px; +} + +.image-list-scroll::-webkit-scrollbar-thumb { + background: var(--semi-color-tertiary-light-default); + border-radius: 3px; +} + +.image-list-scroll::-webkit-scrollbar-thumb:hover { + background: var(--semi-color-tertiary); +} + +.image-list-scroll::-webkit-scrollbar-track { + background: transparent; +} + /* 隐藏请求体 JSON TextArea 的滚动条 */ .custom-request-textarea .semi-input::-webkit-scrollbar { display: none;