You've already forked DataMate
style(ui): 统一预览模态框宽度为响应式尺寸
- 将 CreateAnnotationTaskDialog 中的预览模态框宽度从固定像素改为 80vw - 将 VisualTemplateBuilder 中的预览抽屉宽度从 600px 改为 80vw - 将 PreviewPromptModal 中的模态框宽度从 800px 改为 80vw - 将 Overview 组件中的文本和媒体预览宽度统一改为 80vw - 将 KnowledgeSetDetail 中的文本和媒体预览宽度统一改为 80vw - 移除原来固定的像素值,使用响应式单位提升用户体验
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
||||
import { TagBrowser } from "./components";
|
||||
|
||||
const { Paragraph } = Typography;
|
||||
const PREVIEW_DRAWER_WIDTH = "80vw";
|
||||
|
||||
interface VisualTemplateBuilderProps {
|
||||
onSave?: (templateCode: string) => void;
|
||||
@@ -129,7 +130,7 @@ const VisualTemplateBuilder: React.FC<VisualTemplateBuilderProps> = ({
|
||||
<Drawer
|
||||
title="模板代码预览"
|
||||
placement="right"
|
||||
width={600}
|
||||
width={PREVIEW_DRAWER_WIDTH}
|
||||
open={previewVisible}
|
||||
onClose={() => setPreviewVisible(false)}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user