Skip to content

Commit

Permalink
badge component adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjinpeng1235 committed Aug 13, 2024
1 parent f26b4a7 commit 4e743b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/common/Badge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const emits = defineEmits<{
}>()
</script>
<template>
<div class="iw-badge px-1 flex rounded-md border-none" :style="`background-color: ${option.color ?? ''};color: ${option.color ? '#fff':''}`">
<div class="iw-badge px-1 inline-flex rounded-md border-none" :style="`background-color: ${option.color ?? ''};color: ${option.color ? '#fff':''}`">
<span v-if="option.avatar !== undefined" class="avatar mr-1">
<img :src="option.avatar" class="w-4 rounded-full">
</span>
Expand Down

0 comments on commit 4e743b2

Please sign in to comment.