Skip to content

Commit f3402d3

Browse files
committed
refac
1 parent dbd0d7d commit f3402d3

2 files changed

Lines changed: 26 additions & 3 deletions

File tree

src/lib/components/chat/FileNav.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
import Folder from '../icons/Folder.svelte';
3131
import Document from '../icons/Document.svelte';
3232
import PenAlt from '../icons/PenAlt.svelte';
33-
import Reset from '../icons/Reset.svelte';
33+
import ZoomReset from '../icons/ZoomReset.svelte';
34+
3435
import Spinner from '../common/Spinner.svelte';
3536
import Tooltip from '../common/Tooltip.svelte';
3637
import ConfirmDialog from '../common/ConfirmDialog.svelte';
@@ -656,7 +657,7 @@
656657
on:click={() => filePreviewRef?.resetImageView()}
657658
aria-label={$i18n.t('Reset view')}
658659
>
659-
<Reset className="size-3.5" />
660+
<ZoomReset className="size-3.5" />
660661
</button>
661662
</Tooltip>
662663
{/if}
@@ -667,7 +668,7 @@
667668
on:click={() => filePreviewRef?.resetPdfView()}
668669
aria-label={$i18n.t('Reset view')}
669670
>
670-
<Reset className="size-3.5" />
671+
<ZoomReset className="size-3.5" />
671672
</button>
672673
</Tooltip>
673674
{/if}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<script lang="ts">
2+
export let className = 'size-4';
3+
export let strokeWidth = '1.5';
4+
</script>
5+
6+
<svg
7+
aria-hidden="true"
8+
xmlns="http://www.w3.org/2000/svg"
9+
fill="none"
10+
viewBox="0 0 24 24"
11+
stroke-width={strokeWidth}
12+
stroke="currentColor"
13+
class={className}
14+
>
15+
<rect x="2" y="4" width="20" height="16" rx="3" fill="none" />
16+
<!-- The "1" -->
17+
<path stroke-linecap="round" stroke-linejoin="round" d="M7.5 9v6M6 10.5l1.5-1.5" />
18+
<!-- The ":" -->
19+
<path stroke-linecap="round" stroke-linejoin="round" d="M12 10.5v.01M12 13.5v.01" stroke-width="2" />
20+
<!-- The other "1" -->
21+
<path stroke-linecap="round" stroke-linejoin="round" d="M16.5 9v6M15 10.5l1.5-1.5" />
22+
</svg>

0 commit comments

Comments
 (0)