From 0e0a6d0962c856593464fc055d0c01e2c1c65c30 Mon Sep 17 00:00:00 2001 From: hjhan Date: Fri, 28 Aug 2026 09:03:52 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E9=A2=84=E4=BB=98=E9=87=91=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E5=B7=A6=E6=A0=8F=E6=8E=A7=E4=BB=B6=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6=EF=BC=8C=E5=A4=9A=E9=80=89=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6=E8=87=AA=E9=80=82=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - chosen 已选项去掉固定 130px 宽:短标签右侧留白、搜索框被挤到下一行撑高控件 - 左栏加 tpl-base 标识,input/select 统一 240px、说明 textarea 跟随列宽, 去掉三页面各写一个内联宽度(320/460px 混用) --- .../margin_template_v2ClientEdit.cshtml | 6 +++--- .../margin_template_v2DefaultEdit.cshtml | 6 +++--- .../margin_template_v2Edit.cshtml | 6 +++--- .../Style/Css/margin_template_v2Edit.css | 17 ++++++++++++++--- 4 files changed, 23 insertions(+), 12 deletions(-) diff --git a/YLErpWeb/Views/margin_template_v2/margin_template_v2ClientEdit.cshtml b/YLErpWeb/Views/margin_template_v2/margin_template_v2ClientEdit.cshtml index 5f6b6131..36313a1f 100644 --- a/YLErpWeb/Views/margin_template_v2/margin_template_v2ClientEdit.cshtml +++ b/YLErpWeb/Views/margin_template_v2/margin_template_v2ClientEdit.cshtml @@ -34,7 +34,7 @@
-
+

新模板信息

@@ -142,7 +142,7 @@
-
@@ -158,7 +158,7 @@
-
diff --git a/YLErpWeb/Views/margin_template_v2/margin_template_v2DefaultEdit.cshtml b/YLErpWeb/Views/margin_template_v2/margin_template_v2DefaultEdit.cshtml index a89b98d3..e14a9849 100644 --- a/YLErpWeb/Views/margin_template_v2/margin_template_v2DefaultEdit.cshtml +++ b/YLErpWeb/Views/margin_template_v2/margin_template_v2DefaultEdit.cshtml @@ -34,7 +34,7 @@
-
+

新模板信息

@@ -149,7 +149,7 @@
-
@@ -163,7 +163,7 @@
-
diff --git a/YLErpWeb/Views/margin_template_v2/margin_template_v2Edit.cshtml b/YLErpWeb/Views/margin_template_v2/margin_template_v2Edit.cshtml index cd205bc1..dc509806 100644 --- a/YLErpWeb/Views/margin_template_v2/margin_template_v2Edit.cshtml +++ b/YLErpWeb/Views/margin_template_v2/margin_template_v2Edit.cshtml @@ -32,7 +32,7 @@
-
+

新模板信息

@@ -115,7 +115,7 @@
-
@@ -128,7 +128,7 @@
-
diff --git a/YLErpWeb/wwwroot/Style/Css/margin_template_v2Edit.css b/YLErpWeb/wwwroot/Style/Css/margin_template_v2Edit.css index a84c7d9d..175ea26c 100644 --- a/YLErpWeb/wwwroot/Style/Css/margin_template_v2Edit.css +++ b/YLErpWeb/wwwroot/Style/Css/margin_template_v2Edit.css @@ -62,9 +62,8 @@ padding: 5px; } -.chosen-container-multi .chosen-choices li.search-choice { - width: 130px; -} +/*多选已选项宽度自适应:固定 130px 会让短标签(买入/收益互换等)右侧大片留白, + 并把隐藏的搜索输入框挤到下一行,把整个控件撑出一截空白高度*/ .form-layout .chosen-choices > li > span:first-child, .searchdiv .chosen-choices .search-choice > span:first-child { width: 120px; @@ -100,3 +99,15 @@ p { .spanBlk table th, .spanBlk table td { padding: 2px 4px; } + +/*左栏基础信息列(tpl-base 标记在三个编辑页共用的左侧 col 上): + 控件统一 240px 宽、右缘对齐;多选 chosen 初始化取 select 宽度(SetAceDropDown),随之统一。 + 说明类 textarea 跟随列宽(减去 160px 标签 + 8px 间距 + 4px 余量)*/ +.tpl-base input.text-box, +.tpl-base select { + width: 240px; +} + +.tpl-base textarea.text-box { + width: calc(100% - 172px); +}