Formatting fixes.

This commit is contained in:
Dermot Duffy
2024-08-17 11:48:41 -07:00
parent 869c2f9049
commit dc3ff62603
3 changed files with 14 additions and 5 deletions
+5 -3
View File
@@ -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) : ''}
+8 -1
View File
@@ -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';
+1 -1
View File
@@ -16,7 +16,7 @@
/*******************************************************
* Non-hover styles should not interact with the pointer
*******************************************************/
:host(:not([data-style*='hover'])) {
pointer-events: none;
}