Skip to content

Commit

Permalink
fix: style issue of dialog component icon (#5910)
Browse files Browse the repository at this point in the history
#### What type of PR is this?

/kind bug
/area core
/area ui

#### What this PR does / why we need it:

dialog 组件在标题内容过多的时候,icon 会很小,样式出现错位!

#### Does this PR introduce a user-facing change?

```release-note
修复当 Dialog 标题过长时,提示图标的样式问题。
```
  • Loading branch information
lan-yonghui committed May 14, 2024
1 parent a629961 commit 0d524e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/packages/components/src/components/dialog/Dialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const handleClose = () => {
<component
:is="icons[type].icon"
:class="`text-${icons[type].color}-500`"
class="w-6 h-6"
class="w-6 h-6 flex-none"
></component>
<div class="text-base text-gray-900 font-bold">{{ title }}</div>
</div>
Expand Down

0 comments on commit 0d524e1

Please sign in to comment.