Formatting fixes.
This commit is contained in:
+5
-3
@@ -233,13 +233,15 @@ class FrigateCard extends LitElement {
|
|||||||
((statusBarStyle === 'outside' && kind === 'outerlay') ||
|
((statusBarStyle === 'outside' && kind === 'outerlay') ||
|
||||||
(statusBarStyle !== 'outside' && kind === 'overlay'));
|
(statusBarStyle !== 'outside' && kind === 'overlay'));
|
||||||
|
|
||||||
|
|
||||||
// Complex logic to try to always put the menu in the right-looking place.
|
// Complex logic to try to always put the menu in the right-looking place.
|
||||||
const renderMenuFirst =
|
const renderMenuFirst =
|
||||||
menuPosition === 'left' ||
|
menuPosition === 'left' ||
|
||||||
menuPosition === 'right' ||
|
menuPosition === 'right' ||
|
||||||
(menuPosition === 'bottom' && menuStyle === 'hidden' && statusBarStyle !== 'popup') ||
|
(menuPosition === 'bottom' &&
|
||||||
(menuPosition === 'top' && (menuStyle !== 'hidden' || statusBarStyle === 'popup'));
|
menuStyle === 'hidden' &&
|
||||||
|
statusBarStyle !== 'popup') ||
|
||||||
|
(menuPosition === 'top' &&
|
||||||
|
(menuStyle !== 'hidden' || statusBarStyle === 'popup'));
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
${shouldRenderMenu && renderMenuFirst ? this._renderMenu(menuPosition) : ''}
|
${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 { customElement, property } from 'lit/decorators.js';
|
||||||
import { classMap } from 'lit/directives/class-map.js';
|
import { classMap } from 'lit/directives/class-map.js';
|
||||||
import { actionHandler } from '../action-handler-directive.js';
|
import { actionHandler } from '../action-handler-directive.js';
|
||||||
|
|||||||
Reference in New Issue
Block a user