fix: upload: bad play/pause icons

Massimo Melina committed Sep 17, 2023 at 10:40 UTC 7a57db7fb26d8bdb35af372e80508ae309f9c0cc
5 files changed +10 -12
frontend/fontello-config.json
+6
@@ -221,6 +221,12 @@
221 "css": "comment",
222 "code": 61669,
223 "src": "fontawesome"
224 + },
225 + {
226 + "uid": "0b28050bac9d3facf2f0226db643ece0",
227 + "css": "pause",
228 + "code": 59407,
229 + "src": "fontawesome"
230 }
231 ]
232 }
\ No newline at end of file
frontend/public/fontello.css
+2 -11
@@ -1,19 +1,9 @@
1 @font-face {
2 font-family: 'fontello';
3 - src: url('fontello.woff2?44288867') format('woff2');
3 + src: url('fontello.woff2?13611077') format('woff2');
4 font-weight: normal;
5 font-style: normal;
6 }
7 -/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
8 -/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
9 -/*
10 -@media screen and (-webkit-min-device-pixel-ratio:0) {
11 - @font-face {
12 - font-family: 'fontello';
13 - src: url('../font/fontello.svg?44288867#fontello') format('svg');
14 - }
15 -}
16 -*/
7 [class^="fa-"]:before, [class*=" fa-"]:before {
8 font-family: "fontello";
9 font-style: normal;
@@ -64,6 +54,7 @@
54 .fa-key:before { content: '\e80c'; } /* '' */
55 .fa-trash:before { content: '\e80d'; } /* '' */
56 .fa-to_start:before { content: '\e80e'; } /* '' */
57 +.fa-pause:before { content: '\e80f'; } /* '' */
58 .fa-to_end:before { content: '\e810'; } /* '' */
59 .fa-image:before { content: '\e811'; } /* '' */
60 .fa-camera:before { content: '\e812'; } /* '' */
frontend/public/fontello.woff2
Binary files a/frontend/public/fontello.woff2 and b/frontend/public/fontello.woff2 differ
frontend/src/icons.ts
+1
@@ -32,6 +32,7 @@ const SYS_ICONS: Record<string, [string] | [string, string]> = {
32 menu: ['☰'],
33 list: ['☰','menu'],
34 play: ['▶'],
35 + pause: ['⏸'],
36 edit: ['✏️'],
37 zoom: ['↔'],
38 }
frontend/src/upload.ts
+1 -1
@@ -145,7 +145,7 @@ export function showUpload() {
145 uploadState.qs = []
146 abortCurrentUpload()
147 }),
148 - iconBtn(paused ? '▶' : '⏸', () => {
148 + iconBtn(paused ? 'play' : 'pause', () => {
149 uploadState.paused = !uploadState.paused
150 }),
151 ),