Formatting fixes.
This commit is contained in:
+5
-3
@@ -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) : ''}
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
/*******************************************************
|
||||
* Non-hover styles should not interact with the pointer
|
||||
*******************************************************/
|
||||
|
||||
|
||||
:host(:not([data-style*='hover'])) {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user