diff --git a/xiaoshi-device-balance-card.js b/xiaoshi-device-balance-card.js index e302a69..f3b4b4f 100644 --- a/xiaoshi-device-balance-card.js +++ b/xiaoshi-device-balance-card.js @@ -91,6 +91,7 @@ class XiaoshiBalanceCardEditor extends LitElement { align-items: center; gap: 8px; flex: 1; + justify-content: space-between; } .entity-details { @@ -146,10 +147,14 @@ class XiaoshiBalanceCardEditor extends LitElement { margin-bottom: 8px; font-size: 12px; color: #000; + justify-content: space-between; } .attribute-config { margin-top: 4px; + display: flex; + flex-direction: column; + gap: 4px; } .attribute-input { @@ -161,6 +166,32 @@ class XiaoshiBalanceCardEditor extends LitElement { box-sizing: border-box; } + .override-config { + display: flex; + align-items: center; + gap: 4px; + margin-top: 2px; + } + + .override-checkbox { + margin-right: 4px; + } + + .override-input { + flex: 1; + padding: 2px 6px; + border: 1px solid #ddd; + border-radius: 3px; + font-size: 11px; + box-sizing: border-box; + } + + .override-label { + font-size: 11px; + color: #666; + white-space: nowrap; + } + .remove-btn { background: none; border: none; @@ -205,18 +236,7 @@ class XiaoshiBalanceCardEditor extends LitElement { /> -