fix(ume): keep key-alert monitor toggle on one line

Use inline-flex layout for the enabled checkbox so the label no longer wraps to a second row.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-06-23 15:02:11 +08:00
parent 17270a26b6
commit d5d6d4eada

View file

@ -824,8 +824,8 @@ export function UmePage() {
<tbody> <tbody>
{keyAlertRules.map((rule) => ( {keyAlertRules.map((rule) => (
<tr key={rule.notification_id} className={rule.enabled ? undefined : "row--muted"}> <tr key={rule.notification_id} className={rule.enabled ? undefined : "row--muted"}>
<td> <td style={{ whiteSpace: "nowrap" }}>
<label className="checkbox-inline"> <label style={{ display: "inline-flex", alignItems: "center", gap: 6 }}>
<input <input
type="checkbox" type="checkbox"
checked={Boolean(rule.enabled)} checked={Boolean(rule.enabled)}