diff --git a/index.html b/index.html index 937a29d..bb43c81 100644 --- a/index.html +++ b/index.html @@ -401,18 +401,20 @@ C, 20, 30, 40
-
-
-
-

📊

-

输入数据后点击"生成图表"

+
+
+
+
+

📊

+

输入数据后点击"生成图表"

+
-
- -
diff --git a/server.js b/server.js index 8a2bbcb..c1652e0 100644 --- a/server.js +++ b/server.js @@ -919,7 +919,7 @@ app.get('/api/health', (req, res) => { res.json({ status: 'ok', service: 'data-chart-tool', - version: '1.11.0', + version: '1.11.1', endpoints: { 'POST /api/chart': '生成图表图片(JSON body)', 'GET /api/chart': '生成图表图片(URL 参数)', @@ -934,7 +934,7 @@ app.get('/api/health', (req, res) => { app.get('/api/docs', (req, res) => { res.json({ name: '数据可视化图表生成器 API', - version: '1.11.0', + version: '1.11.1', endpoints: [ { method: 'POST', diff --git a/style.css b/style.css index 4aa34de..e7f240f 100644 --- a/style.css +++ b/style.css @@ -325,9 +325,18 @@ body { align-items: flex-start; } -.chart-container { +/* 右侧主区域:原图预览 + 导出预览 上下排列 */ +.right-main { flex: 1; min-width: 0; + display: flex; + flex-direction: column; + gap: 14px; +} + +.chart-container { + flex: none; + min-width: 0; background: var(--panel-bg); border-radius: var(--radius); padding: 20px; @@ -337,7 +346,7 @@ body { .chart-area { width: 100%; - height: 600px; + height: 420px; } .placeholder { @@ -370,7 +379,7 @@ body { } .chart-area { - height: 450px; + height: 320px; } /* 小屏幕下风格按钮回到图表下方 */ @@ -725,8 +734,9 @@ input[type="range"]::-moz-range-thumb { /* 导出设置折叠栏下载按钮(更小,避免挤占) */ .export-header .btn-sm { + flex: 0 0 auto; + width: auto; padding: 3px 8px; font-size: 0.74rem; white-space: nowrap; - flex-shrink: 0; }