From 96f8fce9bff443ae95938f15bdb6ffab5a783569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=85=E8=86=80?= Date: Sat, 17 Oct 2026 03:36:18 +0800 Subject: [PATCH] style(group-editor): size forge and log target controls Keep source hosts, platform selectors and remove actions aligned without stretching short controls across the dialog. Wrap component roots explicitly so their internal markup cannot break the grid. --- app/assets/css/main.css | 24 ++++-- app/components/GroupEditor.vue | 153 ++++++++++++++++++--------------- app/composables/useI18n.ts | 2 + 3 files changed, 100 insertions(+), 79 deletions(-) diff --git a/app/assets/css/main.css b/app/assets/css/main.css index 81c88ef..c945947 100644 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -719,6 +719,14 @@ @apply w-full; } + .ctl-md { + @apply w-full max-w-64; + } + + .ctl-stack { + @apply mt-2 flex w-full max-w-md flex-col gap-2; + } + .target-row { @apply mb-2 grid grid-cols-[minmax(130px,1fr)_auto] items-center gap-2 rounded-sm border border-border bg-surface-2 p-2.5 max-sm:grid-cols-[1fr_auto]; grid-template-areas: @@ -749,31 +757,29 @@ } .forge-source-row { - @apply mb-2 grid items-center gap-2 rounded-sm border border-border bg-surface-2 p-2.5; + @apply mb-2 grid items-center gap-2 rounded-lg border border-border bg-surface-2 p-2.5; grid-template-areas: "host type del" "name name name"; - grid-template-columns: 1fr auto auto; + grid-template-columns: minmax(0, 1fr) 8rem auto; } .forge-source-row .f-host { grid-area: host; } - .forge-source-row .select.forge-type { + .forge-source-row .f-type { grid-area: type; - @apply w-[110px]; + } + + .forge-source-row .f-del { + grid-area: del; } .forge-source-row .f-name { grid-area: name; } - .forge-source-row > .icon-btn { - grid-area: del; - justify-self: end; - } - .node-editor { @apply mb-1; } diff --git a/app/components/GroupEditor.vue b/app/components/GroupEditor.vue index 3013176..71dc35d 100644 --- a/app/components/GroupEditor.vue +++ b/app/components/GroupEditor.vue @@ -66,35 +66,41 @@ {{ t("groupEditor.forgeSourcesNote") }}
- - +
+ +
+
+ +
- ✕ + - +
+ +
{{ t("groupEditor.forgeSourcesAdd") }} @@ -159,12 +165,14 @@ >{{ t("groupEditor.installationId") }} {{ t("groupEditor.installationIdNote") }} - +
+ +
{{ t("groupEditor.installationIdHint") }}
@@ -175,48 +183,52 @@ >{{ t("groupEditor.logTarget") }} {{ t("groupEditor.logTargetNote") }} - - - + +
+ + +
{{ t("groupEditor.logTargetHint") }}
@@ -237,6 +249,7 @@