From dc3ff6260363c61c7c879633288b538cbbf2e1f1 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Sat, 17 Aug 2024 11:48:41 -0700 Subject: [PATCH] Formatting fixes. --- src/card.ts | 8 +++++--- src/components/status-bar.ts | 9 ++++++++- src/scss/status.scss | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/card.ts b/src/card.ts index 699c1699..756f75a5 100644 --- a/src/card.ts +++ b/src/card.ts @@ -233,13 +233,15 @@ class FrigateCard extends LitElement { ((statusBarStyle === 'outside' && kind === 'outerlay') || (statusBarStyle !== 'outside' && kind === 'overlay')); - // Complex logic to try to always put the menu in the right-looking place. const renderMenuFirst = menuPosition === 'left' || menuPosition === 'right' || - (menuPosition === 'bottom' && menuStyle === 'hidden' && statusBarStyle !== 'popup') || - (menuPosition === 'top' && (menuStyle !== 'hidden' || statusBarStyle === 'popup')); + (menuPosition === 'bottom' && + menuStyle === 'hidden' && + statusBarStyle !== 'popup') || + (menuPosition === 'top' && + (menuStyle !== 'hidden' || statusBarStyle === 'popup')); return html` ${shouldRenderMenu && renderMenuFirst ? this._renderMenu(menuPosition) : ''} diff --git a/src/components/status-bar.ts b/src/components/status-bar.ts index a54abfe6..7cfcc988 100644 --- a/src/components/status-bar.ts +++ b/src/components/status-bar.ts @@ -1,4 +1,11 @@ -import { CSSResultGroup, LitElement, PropertyValues, TemplateResult, html, unsafeCSS } from 'lit'; +import { + CSSResultGroup, + LitElement, + PropertyValues, + TemplateResult, + html, + unsafeCSS, +} from 'lit'; import { customElement, property } from 'lit/decorators.js'; import { classMap } from 'lit/directives/class-map.js'; import { actionHandler } from '../action-handler-directive.js'; diff --git a/src/scss/status.scss b/src/scss/status.scss index ad740e96..d68e5de4 100644 --- a/src/scss/status.scss +++ b/src/scss/status.scss @@ -16,7 +16,7 @@ /******************************************************* * Non-hover styles should not interact with the pointer *******************************************************/ - + :host(:not([data-style*='hover'])) { pointer-events: none; }