From b3391b34e41385de75d9d1bb565e5cf21ef08ce4 Mon Sep 17 00:00:00 2001 From: Philipp <84805847+insomniac2305@users.noreply.github.com> Date: Mon, 27 Jan 2025 14:52:32 +0100 Subject: [PATCH] Increase generic entity row touch target (#23894) --- .../lovelace/components/hui-generic-entity-row.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/panels/lovelace/components/hui-generic-entity-row.ts b/src/panels/lovelace/components/hui-generic-entity-row.ts index 9a38709b47..dfa86f40f5 100644 --- a/src/panels/lovelace/components/hui-generic-entity-row.ts +++ b/src/panels/lovelace/components/hui-generic-entity-row.ts @@ -195,11 +195,15 @@ export class HuiGenericEntityRow extends LitElement { flex-direction: row; } .info { - margin-left: 16px; - margin-right: 8px; - margin-inline-start: 16px; - margin-inline-end: 8px; + padding-left: 16px; + padding-right: 8px; + padding-inline-start: 16px; + padding-inline-end: 8px; flex: 1 1 30%; + min-height: 40px; + display: flex; + flex-direction: column; + justify-content: center; } .info, .info > * { @@ -233,6 +237,9 @@ export class HuiGenericEntityRow extends LitElement { } .value { direction: ltr; + min-height: 40px; + display: flex; + align-items: center; } `; }