fix: 设置项说明改为悬停提示图标

This commit is contained in:
2026-11-09 15:06:17 +08:00
parent 3cd1196010
commit b3f43d1fad
2 changed files with 7 additions and 4 deletions
+4 -2
View File
@@ -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; }
+3 -2
View File
@@ -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: