From 77d24f4129bbc636a7e127299434507c2dde6cce Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Thu, 29 Jun 2023 11:27:49 +0200 Subject: [PATCH] Show position on sidebar card and hide arrow on panel card (#17092) --- .../lovelace/components/hui-card-options.ts | 62 ++++++++++--------- src/panels/lovelace/views/hui-masonry-view.ts | 1 - src/panels/lovelace/views/hui-panel-view.ts | 1 + 3 files changed, 33 insertions(+), 31 deletions(-) diff --git a/src/panels/lovelace/components/hui-card-options.ts b/src/panels/lovelace/components/hui-card-options.ts index f91d5218f4..ec04f21acd 100644 --- a/src/panels/lovelace/components/hui-card-options.ts +++ b/src/panels/lovelace/components/hui-card-options.ts @@ -46,7 +46,7 @@ export class HuiCardOptions extends LitElement { @queryAssignedNodes() private _assignedNodes?: NodeListOf; - @property({ type: Boolean }) public showPosition = false; + @property({ type: Boolean }) public hidePosition = false; @storage({ key: "lovelaceClipboard", @@ -82,36 +82,38 @@ export class HuiCardOptions extends LitElement { >
- - ${this.showPosition - ? html` -
${this.path![1] + 1}
-
` + ${!this.hidePosition + ? html` + + +
${this.path![1] + 1}
+
+ + ` : nothing} -