fix: 设置项说明改为悬停提示图标
This commit is contained in:
+4
-2
@@ -277,8 +277,10 @@ html, body { height: 100%; overflow: hidden; }
|
|||||||
padding: 12px 0; border-top: 1px solid var(--etl-border);
|
padding: 12px 0; border-top: 1px solid var(--etl-border);
|
||||||
}
|
}
|
||||||
.etl-field:first-child { border-top: none; }
|
.etl-field:first-child { border-top: none; }
|
||||||
.etl-field-label { font-size: 13.5px; }
|
.etl-field-label { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 13.5px; }
|
||||||
.etl-field-hint { font-size: 12px; color: var(--etl-muted); margin-top: 2px; }
|
.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-field-control { min-width: 0; display: flex; align-items: center; }
|
||||||
.etl-input { width: 100%; max-width: 520px; }
|
.etl-input { width: 100%; max-width: 520px; }
|
||||||
.etl-input-short { max-width: 200px; }
|
.etl-input-short { max-width: 200px; }
|
||||||
|
|||||||
+3
-2
@@ -848,9 +848,10 @@ class AdminPage:
|
|||||||
) -> Iterator[None]:
|
) -> Iterator[None]:
|
||||||
with ui.element("div").classes("etl-field") as row:
|
with ui.element("div").classes("etl-field") as row:
|
||||||
with ui.element("div").classes("etl-field-label"):
|
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:
|
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"):
|
with ui.element("div").classes("etl-field-control"):
|
||||||
yield
|
yield
|
||||||
if when is not None:
|
if when is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user