From 4997c14bda1f3e1991726d28cb6b004f65b2f1b5 Mon Sep 17 00:00:00 2001 From: eddy Date: Sat, 1 Aug 2026 14:45:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=B9=E5=96=84=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=E5=B8=83=E5=B1=80=E4=B8=8E=E6=97=A0?= =?UTF-8?q?=E9=9A=9C=E7=A2=8D=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 调整任务编辑器的字号和文本框高度,使其更适合笔记本视口 - 将表单标签与控件正确关联,并应用 Bootstrap 标签样式 - 使用语义化表单元素优化复选框、进度显示和导入模式结构 --- src/css/styles.css | 19 ++++++++ src/index.html | 107 ++++++++++++++++++++++++++++----------------- 2 files changed, 86 insertions(+), 40 deletions(-) diff --git a/src/css/styles.css b/src/css/styles.css index 386388c..598c2ca 100644 --- a/src/css/styles.css +++ b/src/css/styles.css @@ -273,6 +273,25 @@ body { overflow-wrap: anywhere; } +/* Task editor */ +/* Compact type scale, scoped to the editor: at the board's default 1rem the form runs + past a laptop viewport and every textarea loses a visible line of text. */ +#taskModal .modal-title { + font-size: 1.1rem; +} +#taskModal .form-label, +#taskModal .form-control, +#taskModal .form-select, +#taskModal .form-check-label, +#taskModal .modal-footer .btn { + font-size: 0.85rem; +} +/* Height comes from each textarea's rows attribute; this only stops horizontal + dragging, which would otherwise break the modal grid. */ +#taskModal .task-editor-textarea { + resize: vertical; +} + /* Timeline */ .timeline-toggle { cursor: pointer; diff --git a/src/index.html b/src/index.html index e2106f5..6fb6bee 100644 --- a/src/index.html +++ b/src/index.html @@ -128,11 +128,11 @@
-
-
-
-
-
-
-
-
-
- -
0%
+
+ 0% +
-
- +
+
+ +
@@ -229,26 +246,36 @@