diff --git a/ui/atproto/viewers/app_bsky_actor_profile.js b/ui/atproto/viewers/app_bsky_actor_profile.js index a40154e..f6e23a4 100644 --- a/ui/atproto/viewers/app_bsky_actor_profile.js +++ b/ui/atproto/viewers/app_bsky_actor_profile.js @@ -111,13 +111,17 @@ class AppBskyActorProfile extends AtRecordElement { - ${avatarUrl - ? html`` - : html`
`} + ${ + avatarUrl + ? html`` + : html`
` + }
${profile.displayName || subject}
@${subject}
diff --git a/ui/atproto/viewers/app_bsky_feed_post.js b/ui/atproto/viewers/app_bsky_feed_post.js index 9e71c2d..9de42d5 100644 --- a/ui/atproto/viewers/app_bsky_feed_post.js +++ b/ui/atproto/viewers/app_bsky_feed_post.js @@ -499,30 +499,36 @@ class AppBskyFeedPost extends AtRecordElement { return html`
${header} - ${parentUri - ? html`` - : ""} + ${ + parentUri + ? html`` + : "" + } ${this._renderText(post)} ${this._renderEmbed(post.embed, did)} - ${this.compact - ? actions - : html``} + ${ + this.compact + ? actions + : html`` + }
`; } diff --git a/ui/atproto/viewers/atproto_byline.js b/ui/atproto/viewers/atproto_byline.js index 28522b4..8e4557e 100644 --- a/ui/atproto/viewers/atproto_byline.js +++ b/ui/atproto/viewers/atproto_byline.js @@ -132,21 +132,25 @@ export class AtprotoByline extends LitElement { const rel = relativeTime(this.time); return html` - ${profile?.avatarUrl - ? html`` - : html``} + ${ + profile?.avatarUrl + ? html`` + : html`` + } - ${rel - ? html`${rel}` - : ""} + ${ + rel + ? html`${rel}` + : "" + } `; } } diff --git a/ui/atproto/viewers/atproto_link_card.js b/ui/atproto/viewers/atproto_link_card.js index 9db663a..67ff116 100644 --- a/ui/atproto/viewers/atproto_link_card.js +++ b/ui/atproto/viewers/atproto_link_card.js @@ -98,20 +98,24 @@ class AtprotoLinkCard extends LitElement { const title = this.title || this.url; if (!this.url && !title) return html``; return html` - ${this.image - ? html`` - : ""} + ${ + this.image + ? html`` + : "" + }
${host ? html`
${host}
` : ""} ${title ? html`
${title}
` : ""} - ${this.description - ? html`
${this.description}
` - : ""} + ${ + this.description + ? html`
${this.description}
` + : "" + }
`; } diff --git a/ui/atproto/viewers/atproto_record_card.js b/ui/atproto/viewers/atproto_record_card.js index c160a31..ff291ef 100644 --- a/ui/atproto/viewers/atproto_record_card.js +++ b/ui/atproto/viewers/atproto_record_card.js @@ -49,12 +49,14 @@ class AtprotoRecordCard extends AtRecordElement { const value = this.data.value || {}; return html`
- ${this.compact - ? "" - : html``} + ${ + this.compact + ? "" + : html`` + }
${lexiconLabel(collection)}
`; diff --git a/ui/atproto/viewers/atproto_reference_record.js b/ui/atproto/viewers/atproto_reference_record.js index 24d400d..89b59ab 100644 --- a/ui/atproto/viewers/atproto_reference_record.js +++ b/ui/atproto/viewers/atproto_reference_record.js @@ -265,12 +265,14 @@ class AtprotoReferenceRecord extends AtRecordElement { const ref = this._reference(); return html`
- ${this.compact - ? "" - : html``} + ${ + this.compact + ? "" + : html`` + }
${ref.parts.map((part, i) => diff --git a/ui/atproto/viewers/ing_dasl_masl.js b/ui/atproto/viewers/ing_dasl_masl.js index 6f55e7b..74daf30 100644 --- a/ui/atproto/viewers/ing_dasl_masl.js +++ b/ui/atproto/viewers/ing_dasl_masl.js @@ -126,39 +126,49 @@ class IngDaslMasl extends AtRecordElement {
- ${iconSrc - ? html`` - : ""} + ${ + iconSrc + ? html`` + : "" + }
${tile.name || "Untitled Tile"}
- ${tile.sizing - ? html`${tile.sizing.width} × ${tile.sizing.height}` - : ""} + ${ + tile.sizing + ? html`${tile.sizing.width} × ${tile.sizing.height}` + : "" + } ${totalSize ? html` · ${formatSize(totalSize)}` : ""} - ${this.data.value?.createdAt - ? html` · - ${new Date(this.data.value.createdAt).toLocaleDateString()}` - : ""} + ${ + this.data.value?.createdAt + ? html` · + ${new Date(this.data.value.createdAt).toLocaleDateString()}` + : "" + }
- ${tile.description - ? html`
${tile.description}
` - : ""} + ${ + tile.description + ? html`
${tile.description}
` + : "" + } Open Tile - ${screenshotSrc - ? html`
- Screenshot -
` - : ""} + ${ + screenshotSrc + ? html`
+ Screenshot +
` + : "" + }
Resources (${resources.length})
diff --git a/ui/atproto/viewers/network_cosmik_card.js b/ui/atproto/viewers/network_cosmik_card.js index 844b532..f34137f 100644 --- a/ui/atproto/viewers/network_cosmik_card.js +++ b/ui/atproto/viewers/network_cosmik_card.js @@ -69,12 +69,14 @@ class NetworkCosmikCard extends AtRecordElement { value.type === "NOTE" || (!value.url && value.content?.text != null); return html`
- ${this.compact - ? "" - : html``} + ${ + this.compact + ? "" + : html`` + } ${isNote ? this._renderNote(value) : this._renderUrlCard(value)}
`; diff --git a/ui/atproto/viewers/network_cosmik_collection.js b/ui/atproto/viewers/network_cosmik_collection.js index 83ee8e6..db5dbd5 100644 --- a/ui/atproto/viewers/network_cosmik_collection.js +++ b/ui/atproto/viewers/network_cosmik_collection.js @@ -68,16 +68,20 @@ class NetworkCosmikCollection extends AtRecordElement { : `${access} collection`; return html`
- ${this.compact - ? "" - : html``} + ${ + this.compact + ? "" + : html`` + } ${value.name ? html`
${value.name}
` : ""} - ${value.description - ? html`
${value.description}
` - : ""} + ${ + value.description + ? html`
${value.description}
` + : "" + }
${meta} diff --git a/ui/atproto/viewers/sh_tangled_repo.js b/ui/atproto/viewers/sh_tangled_repo.js index a3bcf13..5ed8656 100644 --- a/ui/atproto/viewers/sh_tangled_repo.js +++ b/ui/atproto/viewers/sh_tangled_repo.js @@ -117,47 +117,59 @@ class ShTangledRepo extends AtRecordElement { const topics = Array.isArray(value.topics) ? value.topics : []; return html`
- ${this.compact - ? "" - : html``} + ${ + this.compact + ? "" + : html`` + }
${name}
- ${value.description - ? html`
${value.description}
` - : ""} - ${topics.length - ? html`
- ${topics.map((t) => html`#${t}`)} -
` - : ""} - ${value.website || value.source - ? html`` - : ""} + ${ + value.description + ? html`
${value.description}
` + : "" + } + ${ + topics.length + ? html`
+ ${topics.map((t) => html`#${t}`)} +
` + : "" + } + ${ + value.website || value.source + ? html`` + : "" + }
`; } diff --git a/ui/system/context_menu.js b/ui/system/context_menu.js index 0187f15..3360670 100644 --- a/ui/system/context_menu.js +++ b/ui/system/context_menu.js @@ -97,14 +97,18 @@ export class ContextMenu extends MenuBase { @click=${() => this.handleItemClick(item)} > - ${item.icon - ? html`` - : ""} + ${ + item.icon + ? html`` + : "" + } ${item.label} - ${item.checked - ? html`` - : ""} + ${ + item.checked + ? html`` + : "" + } `, )} diff --git a/ui/system/desktop/notification_panel.js b/ui/system/desktop/notification_panel.js index 88afa39..98d62e2 100644 --- a/ui/system/desktop/notification_panel.js +++ b/ui/system/desktop/notification_panel.js @@ -184,20 +184,24 @@ export class NotificationPanel extends LitElement {
Notifications
- ${this.notifications.length > 0 - ? html`` - : ""} + ${ + this.notifications.length > 0 + ? html`` + : "" + }
- ${this.notifications.length > 0 - ? this.notifications.map((n) => this.renderNotification(n)) - : this.renderEmptyState()} + ${ + this.notifications.length > 0 + ? this.notifications.map((n) => this.renderNotification(n)) + : this.renderEmptyState() + }
`; diff --git a/ui/system/desktop/palette_results.js b/ui/system/desktop/palette_results.js index 9dce5a9..bbdbaa9 100644 --- a/ui/system/desktop/palette_results.js +++ b/ui/system/desktop/palette_results.js @@ -99,19 +99,25 @@ export class PaletteResults extends LitElement { @mouseenter=${() => this._hover(idx)} > - ${it.avatarDid - ? html`` - : html``} + ${ + it.avatarDid + ? html`` + : html`` + } ${it.title} ${it.sub ? html`${it.sub}` : ""} - ${it.kbd?.length - ? html` - ${it.kbd.map((k) => html`${k}`)} - ` - : ""} + ${ + it.kbd?.length + ? html` + ${it.kbd.map((k) => html`${k}`)} + ` + : "" + } `; } diff --git a/ui/system/desktop/peers_popover.js b/ui/system/desktop/peers_popover.js index 21e09cc..d52d5e6 100644 --- a/ui/system/desktop/peers_popover.js +++ b/ui/system/desktop/peers_popover.js @@ -35,20 +35,22 @@ export class PeersPopover extends LitElement { return html`
Connected peers
- ${this.peers.length === 0 - ? html`
No peers connected.
` - : this.peers.map( - (peer) => html` -
- - - ${peer.name} -
- `, - )} + ${ + this.peers.length === 0 + ? html`
No peers connected.
` + : this.peers.map( + (peer) => html` +
+ + + ${peer.name} +
+ `, + ) + }
`; } diff --git a/ui/system/desktop/repos_popover.js b/ui/system/desktop/repos_popover.js index 4204ded..fd0dffb 100644 --- a/ui/system/desktop/repos_popover.js +++ b/ui/system/desktop/repos_popover.js @@ -95,11 +95,13 @@ export class ReposPopover extends LitElement {
- ${this.repos.length === 0 - ? html`
- No repositories tracked yet. -
` - : this.repos.map((repo) => this._renderRepo(repo))} + ${ + this.repos.length === 0 + ? html`
+ No repositories tracked yet. +
` + : this.repos.map((repo) => this._renderRepo(repo)) + }
`; } @@ -121,12 +123,14 @@ export class ReposPopover extends LitElement { ${this._name(repo.did)}${status.text} - ${repo.syncing - ? html`` - : ""} + ${ + repo.syncing + ? html`` + : "" + } `; } diff --git a/ui/system/media_control.js b/ui/system/media_control.js index e2c2b09..e92ea27 100644 --- a/ui/system/media_control.js +++ b/ui/system/media_control.js @@ -60,14 +60,18 @@ export class MediaControl extends LitElement { return html`
- ${this.deviceName - ? html`
${this.deviceName}
` - : ""} + ${ + this.deviceName + ? html`
${this.deviceName}
` + : "" + }
${this.title || "Untitled"}
- ${this.artist - ? html`
${this.artist}
` - : ""} + ${ + this.artist + ? html`
${this.artist}
` + : "" + }
- ${this.duration > 0 - ? html`
- ${this.formatTime(this.position)} -
-
-
- ${this.formatTime(this.duration)} -
` - : ""} + ${ + this.duration > 0 + ? html`
+ ${this.formatTime(this.position)} +
+
+
+ ${this.formatTime(this.duration)} +
` + : "" + }
`; } diff --git a/ui/system/mediacenter/ambient_view.js b/ui/system/mediacenter/ambient_view.js index 958f3b4..f361670 100644 --- a/ui/system/mediacenter/ambient_view.js +++ b/ui/system/mediacenter/ambient_view.js @@ -950,40 +950,46 @@ class AmbientView extends LitElement {
${this._time}
${this._date}
- ${this._weatherTemp !== null - ? html` -
- - ${this._weatherTemp}° - / - ${this._weatherCondition} - / - ${this._weatherLocation} -
- ` - : ""} + ${ + this._weatherTemp !== null + ? html` +
+ + ${this._weatherTemp}° + / + ${this._weatherCondition} + / + ${this._weatherLocation} +
+ ` + : "" + } - ${this.guestPin - ? html` -
- Guest PIN -
- ${[...this.guestPin].map( + ${ + this.guestPin + ? html` +
+ Guest PIN +
+ ${[...this.guestPin].map( (d) => html`${d}`, )} +
-
- ` - : ""} + ` + : "" + }
${this.mediaTitle} - ${this.mediaArtist - ? html` — ${this.mediaArtist}` - : ""} + ${ + this.mediaArtist + ? html` — ${this.mediaArtist}` + : "" + }
`; diff --git a/ui/system/mediacenter/content_browser.js b/ui/system/mediacenter/content_browser.js index c7c037e..ab6d16e 100644 --- a/ui/system/mediacenter/content_browser.js +++ b/ui/system/mediacenter/content_browser.js @@ -388,19 +388,23 @@ class ContentBrowser extends LitElement {
${page.title}
${page.url}
- ${page.hasMedia - ? html`
-
- Playing -
` - : ""} + ${ + page.hasMedia + ? html`
+
+ Playing +
` + : "" + } → close - ${isCloseReady - ? html`
- - Close -
` - : ""} + ${ + isCloseReady + ? html`
+ + Close +
` + : "" + } `; } @@ -411,15 +415,17 @@ class ContentBrowser extends LitElement { ${this._categoryLabel()}
- ${this._items.length === 0 - ? html`
- ${this._isPages ? "No open pages" : "No sources configured"} -
` - : this._items.map((item, idx) => - this._isPages - ? this._renderPageItem(item, idx) - : this._renderSourceItem(item, idx), - )} + ${ + this._items.length === 0 + ? html`
+ ${this._isPages ? "No open pages" : "No sources configured"} +
` + : this._items.map((item, idx) => + this._isPages + ? this._renderPageItem(item, idx) + : this._renderSourceItem(item, idx), + ) + }
`; } diff --git a/ui/system/mediacenter/nav_dock.js b/ui/system/mediacenter/nav_dock.js index c88a77e..7540177 100644 --- a/ui/system/mediacenter/nav_dock.js +++ b/ui/system/mediacenter/nav_dock.js @@ -173,9 +173,9 @@ class NavDock extends LitElement {
${item.label} - ${item.badge - ? html`${item.badge}` - : ""} + ${ + item.badge ? html`${item.badge}` : "" + }
`, )} diff --git a/ui/system/mediacenter/notification_panel.js b/ui/system/mediacenter/notification_panel.js index e7d2ea3..af87ff6 100644 --- a/ui/system/mediacenter/notification_panel.js +++ b/ui/system/mediacenter/notification_panel.js @@ -289,11 +289,13 @@ class NotificationPanelMC extends LitElement {
Pairing Requests
- ${this._requests.length === 0 - ? html`
No pending requests
` - : html`
- ${this._requests.map((req) => this._renderRequest(req))} -
`} + ${ + this._requests.length === 0 + ? html`
No pending requests
` + : html`
+ ${this._requests.map((req) => this._renderRequest(req))} +
` + }
`; } diff --git a/ui/system/mediacenter/now_playing.js b/ui/system/mediacenter/now_playing.js index 81b921a..aa5c70b 100644 --- a/ui/system/mediacenter/now_playing.js +++ b/ui/system/mediacenter/now_playing.js @@ -210,9 +210,11 @@ class NowPlaying extends LitElement { return html`
${this.title || "Nothing playing"}
- ${this.artist - ? html`
${this.artist}
` - : ""} + ${ + this.artist + ? html`
${this.artist}
` + : "" + }
diff --git a/ui/system/mobile/pebble.js b/ui/system/mobile/pebble.js index e40b2c6..a1e1bd0 100644 --- a/ui/system/mobile/pebble.js +++ b/ui/system/mobile/pebble.js @@ -917,17 +917,21 @@ export class MobilePebble extends LitElement { const notifCount = this.notifications?.length || 0; return html`
- ${this.favicon - ? html`` - : html``} - ${this.tabCount > 0 - ? html`${this.tabCount}` - : ""} + ${ + this.favicon + ? html`` + : html`` + } + ${ + this.tabCount > 0 + ? html`${this.tabCount}` + : "" + } 0 ? `${notifCount} unread` : ""} @@ -953,16 +957,18 @@ export class MobilePebble extends LitElement { @input=${this._onSearchInput} @keydown=${this._onSearchKeydown} /> - ${this.searching - ? html`` - : ""} + ${ + this.searching + ? html`` + : "" + }
${this.groups?.length ? this._renderResults() : ""} ${this.groups?.length ? this._renderResults() : ""}
@@ -1066,42 +1078,48 @@ export class MobilePebble extends LitElement { ${this.tabs.map( (tab) => html`
this._onTabCardClick(tab)} > - ${tab.screenshotUrl - ? html`` - : html`
- -
`} -
- ${tab.favicon + ${ + tab.screenshotUrl ? html`` - : html``} + : html`
+ +
` + } +
+ ${ + tab.favicon + ? html`` + : html`` + } ${tab.title || "Untitled"}
- ${this.layoutManager?.isHomescreen?.(tab.id) - ? "" - : html``} + ${ + this.layoutManager?.isHomescreen?.(tab.id) + ? "" + : html`` + }
`, )} @@ -1123,8 +1141,10 @@ export class MobilePebble extends LitElement {
diff --git a/ui/system/mobile/pebble_peek.js b/ui/system/mobile/pebble_peek.js index 5805e2d..6d6b1dc 100644 --- a/ui/system/mobile/pebble_peek.js +++ b/ui/system/mobile/pebble_peek.js @@ -34,16 +34,20 @@ export class PebblePeek extends LitElement { return html`
- ${tab.favicon - ? html`` - : html``} + ${ + tab.favicon + ? html`` + : html`` + } ${tab.title || "Untitled"}
- ${tab.screenshotUrl - ? html`` - : html`
- -
`} + ${ + tab.screenshotUrl + ? html`` + : html`
+ +
` + }
`; } diff --git a/ui/system/mobile/pebble_results.js b/ui/system/mobile/pebble_results.js index d0e9f34..2535ca3 100644 --- a/ui/system/mobile/pebble_results.js +++ b/ui/system/mobile/pebble_results.js @@ -53,12 +53,14 @@ export class PebbleResults extends LitElement { data-kind=${result.kind} @click=${() => this._click(result)} > - ${result.did - ? html`` - : ""} + ${ + result.did + ? html`` + : "" + } e.preventDefault()}> ${result.value.title} @@ -84,9 +86,11 @@ export class PebbleResults extends LitElement { return html`
- ${group.providerIcon && !hasAvatars - ? html`` - : ""} + ${ + group.providerIcon && !hasAvatars + ? html`` + : "" + }
${group.items.map((r) => this._renderItem(r))} diff --git a/ui/system/select_control.js b/ui/system/select_control.js index fd51681..83f9cb6 100644 --- a/ui/system/select_control.js +++ b/ui/system/select_control.js @@ -112,9 +112,9 @@ export class SelectControl extends MenuBase { const isSelected = index === this.selectedIndex; renderedItems.push(html`
  • this.handleOptionClick(option, index)} > diff --git a/ui/system/task_chooser.js b/ui/system/task_chooser.js index 9c38f1b..e7c0e8d 100644 --- a/ui/system/task_chooser.js +++ b/ui/system/task_chooser.js @@ -305,33 +305,41 @@ export class TaskChooser extends LitElement { ${this._providers.map( (p) => html`
    this._selectProvider(p)}> - ${p.icon - ? html`` - : ""} + ${ + p.icon + ? html`` + : "" + }
    ${p.title}
    - ${p.description - ? html`
    - ${p.description} -
    ` - : ""} + ${ + p.description + ? html`
    + ${p.description} +
    ` + : "" + }
    - ${p.origin}${p.device_name - ? html` (${p.device_name})` - : ""} + ${p.origin}${ + p.device_name + ? html` (${p.device_name})` + : "" + }
    `, )} - ${this._providers.length > 1 - ? html`` - : ""} + ${ + this._providers.length > 1 + ? html`` + : "" + }
  • diff --git a/ui/system/url_bar_overlay.js b/ui/system/url_bar_overlay.js index ee4273d..2e37ce0 100644 --- a/ui/system/url_bar_overlay.js +++ b/ui/system/url_bar_overlay.js @@ -118,11 +118,13 @@ export class UrlBarOverlay extends LitElement { (group) => html`
    - ${group.providerIcon - ? html`` - : null} + ${ + group.providerIcon + ? html`` + : null + }
    ${group.items.map( @@ -132,13 +134,15 @@ export class UrlBarOverlay extends LitElement { data-kind=${result.kind} @click=${(e) => this.handleResultClick(e, result)} > - ${result.kind === "link" || result.kind === "webview" - ? html`${result.value.title}` - : html`${result.value}`} + ${ + result.kind === "link" || result.kind === "webview" + ? html`${result.value.title}` + : html`${result.value}` + }
    `, )} diff --git a/ui/system/web_view.js b/ui/system/web_view.js index fa7b033..015cf7a 100644 --- a/ui/system/web_view.js +++ b/ui/system/web_view.js @@ -1236,8 +1236,9 @@ export class WebView extends LitElement { >
    @@ -1260,21 +1261,25 @@ export class WebView extends LitElement { @click="${this.doReload}" > ${this.title} - ${this.blockerOrigin - ? html` -
    - - ${this.blockerBadgeCount > 0 - ? html`${this.blockerBadgeCount}` - : ""} -
    - ` - : ""} + ${ + this.blockerOrigin + ? html` +
    + + ${ + this.blockerBadgeCount > 0 + ? html`${this.blockerBadgeCount}` + : "" + } +
    + ` + : "" + }