Skip to content

Commit 39cd892

Browse files
author
Franz646
committed
style: compact stat cards, horizontal layout, label uses primary-text-color — v2.3.3
1 parent ce083dd commit 39cd892

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

custom_components/orphan_cleaner/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@
4747
PANEL_ICON = "mdi:broom"
4848

4949
# Versione corrente (usata per cache-busting)
50-
VERSION = "2.3.2"
50+
VERSION = "2.3.3"

custom_components/orphan_cleaner/frontend/panel.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,12 @@
6969

7070
.main { padding: 20px; max-width: 980px; margin: 0 auto; }
7171

72-
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
73-
.stat { background: var(--surface2); border-radius: var(--radius-sm); padding: 14px 16px; }
74-
.s-label { font-size: 11px; color: var(--text2); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.03em; }
75-
.s-val { font-size: 24px; font-weight: 500; }
72+
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
73+
.stat { background: var(--surface2); border-radius: var(--radius-sm); padding: 7px 14px;
74+
display: flex; align-items: center; gap: 10px; }
75+
.s-label { font-size: 11px; color: var(--primary-text-color, var(--text1)); text-transform: uppercase;
76+
letter-spacing: 0.03em; flex: 1; opacity: 0.85; }
77+
.s-val { font-size: 22px; font-weight: 600; }
7678
.s-danger .s-val { color: var(--red); }
7779
.s-ok .s-val { color: var(--green); }
7880
.s-warn .s-val { color: #BA7517; }
@@ -234,7 +236,7 @@
234236
<svg viewBox="0 0 24 24"><path d="M19.36 2.72 20.78 4.14l-1.4 1.41 1.41 1.41-4.24 4.24-1.41-1.41-6.89 6.9a4 4 0 0 1-1.2 4.71l-2.83 2.12-1.41-1.41 2.12-2.83a2 2 0 0 0 .27-2.1l-.27-.42L3 15.36l1.41-1.41 1.42 1.42 5.65-5.66-1.41-1.41 4.24-4.24 1.41 1.41z"/></svg>
235237
</div>
236238
<div>
237-
<div class="topbar-title">Orphan Entity Cleaner <span style="font-size:11px;font-weight:400;color:var(--text2);margin-left:6px">v2.3.2</span></div>
239+
<div class="topbar-title">Orphan Entity Cleaner <span style="font-size:11px;font-weight:400;color:var(--text2);margin-left:6px">v2.3.3</span></div>
238240
<div class="topbar-sub">Home Assistant Integration — orphan entity cleanup</div>
239241
</div>
240242
<div class="topbar-spacer"></div>

custom_components/orphan_cleaner/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
"iot_class": "local_push",
1414
"issue_tracker": "https://github.com/Franz646/orphan-cleaner/issues",
1515
"requirements": [],
16-
"version": "2.3.2"
16+
"version": "2.3.3"
1717
}

0 commit comments

Comments
 (0)