Skip to content

Commit df06fe1

Browse files
committed
style(editor): update download button to use new icon and improve layout
1 parent 1f99414 commit df06fe1

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/renderer/components/editor/preview/Preview.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { useSnippets } from '@/composables'
33
import { i18n, ipc } from '@/electron'
44
import { useDark } from '@vueuse/core'
5-
import { Download, Moon, RefreshCcw, Sun } from 'lucide-vue-next'
5+
import { FileDown, Moon, RefreshCcw, Sun } from 'lucide-vue-next'
66
77
const { selectedSnippet } = useSnippets()
88
@@ -125,13 +125,15 @@ watch(isDarkPreview, () => {
125125
/>
126126
</UiActionButton>
127127
</div>
128-
<div>
128+
<div class="flex items-center">
129129
<UiActionButton
130-
type="icon"
130+
type="iconText"
131131
:tooltip="`${i18n.t('button.saveAs')} HTML`"
132132
@click="onSaveHtml"
133133
>
134-
<Download class="h-3 w-3" />
134+
<div class="flex items-center gap-1">
135+
HTML <FileDown class="h-3 w-3" />
136+
</div>
135137
</UiActionButton>
136138
<UiActionButton
137139
type="icon"

0 commit comments

Comments
 (0)