Skip to content

Commit 6ea1cb5

Browse files
committed
style(rss-reader): apply code formatting fixes
- Reformat SVG attributes in index.html - Reformat long line in main.ts
1 parent 871dca7 commit 6ea1cb5

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

edge-apps/rss-reader/index.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,15 @@
2020
<article class="feed-card">
2121
<header class="feed-card-header">
2222
<div class="feed-card-icon">
23-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
24-
<path d="M6.18 15.64a2.18 2.18 0 0 1 2.18 2.18C8.36 19.01 7.38 20 6.18 20C4.98 20 4 19.01 4 17.82a2.18 2.18 0 0 1 2.18-2.18M4 4.44A15.56 15.56 0 0 1 19.56 20h-2.83A12.73 12.73 0 0 0 4 7.27V4.44m0 5.66a9.9 9.9 0 0 1 9.9 9.9h-2.83A7.07 7.07 0 0 0 4 12.93V10.1z"/>
23+
<svg
24+
xmlns="http://www.w3.org/2000/svg"
25+
viewBox="0 0 24 24"
26+
fill="currentColor"
27+
aria-hidden="true"
28+
>
29+
<path
30+
d="M6.18 15.64a2.18 2.18 0 0 1 2.18 2.18C8.36 19.01 7.38 20 6.18 20C4.98 20 4 19.01 4 17.82a2.18 2.18 0 0 1 2.18-2.18M4 4.44A15.56 15.56 0 0 1 19.56 20h-2.83A12.73 12.73 0 0 0 4 7.27V4.44m0 5.66a9.9 9.9 0 0 1 9.9 9.9h-2.83A7.07 7.07 0 0 0 4 12.93V10.1z"
31+
/>
2532
</svg>
2633
</div>
2734
<span class="feed-card-source"></span>

edge-apps/rss-reader/src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ function renderCards(entries: RssEntry[], rssTitle: string) {
102102

103103
for (const entry of entries) {
104104
const clone = template.content.cloneNode(true) as DocumentFragment
105-
clone.querySelector<HTMLElement>('.feed-card-source')!.textContent = rssTitle
105+
clone.querySelector<HTMLElement>('.feed-card-source')!.textContent =
106+
rssTitle
106107
clone.querySelector<HTMLElement>('.feed-card-title')!.textContent =
107108
entry.title
108109
clone.querySelector<HTMLElement>('.feed-card-date')!.textContent =

0 commit comments

Comments
 (0)