Skip to content

Commit 75b9581

Browse files
committed
fix svg
1 parent 1b40fc1 commit 75b9581

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

apps/chrome-extension/src/content.ts

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ const initButtons = (): void => {
7373
},
7474
{
7575
type: 'view',
76-
innerHtml: `
76+
innerHtml: `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none"
77+
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
78+
class="octicon octicon-view" fill="currentColor">
79+
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8"/>
80+
<circle cx="12" cy="12" r="3"/>
81+
</svg>
7782
`,
7883
action: () => {
7984
chrome.runtime
@@ -83,12 +88,15 @@ const initButtons = (): void => {
8388
},
8489
{
8590
type: 'download',
86-
innerHtml: `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none"
87-
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
88-
class="octicon octicon-view" fill="currentColor">
89-
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8"/>
90-
<circle cx="12" cy="12" r="3"/>
91-
</svg>`,
91+
innerHtml: `<svg aria-hidden="true" focusable="false" role="img" class="octicon octicon-download" viewBox="0 0 16 16"
92+
width="16" height="16" fill="currentColor">
93+
<path
94+
d="M2.75 14A1.75 1.75 0 0 1 1 12.25v-2.5a.75.75 0 0 1 1.5 0v2.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 1.5 0v2.5A1.75 1.75 0 0 1 13.25 14Z">
95+
</path>
96+
<path
97+
d="M7.25 7.689V2a.75.75 0 0 1 1.5 0v5.689l1.97-1.969a.749.749 0 1 1 1.06 1.06l-3.25 3.25a.749.749 0 0 1-1.06 0L4.22 6.78a.749.749 0 1 1 1.06-1.06l1.97 1.969Z">
98+
</path>
99+
</svg>`,
92100
action: () => {
93101
chrome.runtime
94102
.sendMessage({ flag: 'download_docx_as_markdown' })

0 commit comments

Comments
 (0)