Skip to content

Commit 98049ef

Browse files
jlau-icelyingbug
authored andcommitted
style(ollama): optimize retest button icon alignment using #icon slot
1 parent c805334 commit 98049ef

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

frontend/src/views/settings/OllamaSettings.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@
5252
:loading="testing"
5353
@click="testConnection"
5454
>
55-
<t-icon name="refresh" />
55+
<template #icon>
56+
<t-icon name="refresh" />
57+
</template>
5658
{{ $t('ollamaSettings.status.retest') }}
5759
</t-button>
5860
</div>
@@ -141,7 +143,10 @@
141143
:loading="loadingModels"
142144
@click="refreshModels"
143145
>
144-
<t-icon name="refresh" />{{ $t('common.refresh') }}
146+
<template #icon>
147+
<t-icon name="refresh" />
148+
</template>
149+
{{ $t('common.refresh') }}
145150
</t-button>
146151
</div>
147152

0 commit comments

Comments
 (0)