Skip to content

Commit 8f16358

Browse files
fix: icon error
1 parent 75531b6 commit 8f16358

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ui/src/workflow/icons/application-node-icon.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<el-avatar
33
v-if="isAppIcon(item?.icon)"
44
shape="square"
5-
:size="32"
5+
:size="size || 32"
66
style="background: none"
77
class="mr-8"
88
>
99
<img :src="item?.icon" alt="" />
1010
</el-avatar>
11-
<LogoIcon v-else height="32px" />
11+
<LogoIcon v-else :height="`${size}px`" />
1212
</template>
1313
<script setup lang="ts">
1414
import { isAppIcon } from '@/utils/common'
@@ -17,5 +17,6 @@ const props = defineProps<{
1717
name: string
1818
icon: string
1919
}
20+
size?: string | number
2021
}>()
2122
</script>

0 commit comments

Comments
 (0)