From b3f43d1fad74d06422fda5f1b18f018d5c5704a5 Mon Sep 17 00:00:00 2001 From: Nixevol Date: Mon, 9 Nov 2026 15:06:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=BE=E7=BD=AE=E9=A1=B9=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=E6=94=B9=E4=B8=BA=E6=82=AC=E5=81=9C=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etl_app/theme.py | 6 ++++-- etl_app/ui.py | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/etl_app/theme.py b/etl_app/theme.py index c184d13..02ddbed 100644 --- a/etl_app/theme.py +++ b/etl_app/theme.py @@ -277,8 +277,10 @@ html, body { height: 100%; overflow: hidden; } padding: 12px 0; border-top: 1px solid var(--etl-border); } .etl-field:first-child { border-top: none; } -.etl-field-label { font-size: 13.5px; } -.etl-field-hint { font-size: 12px; color: var(--etl-muted); margin-top: 2px; } +.etl-field-label { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 13.5px; } +.etl-field-label-text { min-width: 0; } +.etl-hint { font-size: 16px; color: var(--etl-muted); cursor: help; flex-shrink: 0; } +.etl-hint-tip { max-width: 280px; white-space: normal; line-height: 1.5; } .etl-field-control { min-width: 0; display: flex; align-items: center; } .etl-input { width: 100%; max-width: 520px; } .etl-input-short { max-width: 200px; } diff --git a/etl_app/ui.py b/etl_app/ui.py index ee21388..7a71e88 100644 --- a/etl_app/ui.py +++ b/etl_app/ui.py @@ -848,9 +848,10 @@ class AdminPage: ) -> Iterator[None]: with ui.element("div").classes("etl-field") as row: with ui.element("div").classes("etl-field-label"): - ui.label(self.t(label_key)) + ui.label(self.t(label_key)).classes("etl-field-label-text") if hint_key: - ui.label(self.t(hint_key)).classes("etl-field-hint") + hint = ui.icon("help_outline").classes("etl-hint") + hint.tooltip(self.t(hint_key)).classes("etl-hint-tip").props("anchor=top middle self=bottom middle") with ui.element("div").classes("etl-field-control"): yield if when is not None: