modal: Adjust close button position. (#1532)
This commit is contained in:
parent
34aa68ad35
commit
97ba18fce9
1 changed files with 5 additions and 2 deletions
|
|
@ -473,10 +473,13 @@ impl RenderOnce for Modal {
|
|||
)
|
||||
})
|
||||
.children(self.show_close.then(|| {
|
||||
let top = (paddings.top - px(10.)).max(px(8.));
|
||||
let right = (paddings.right - px(10.)).max(px(8.));
|
||||
|
||||
Button::new("close")
|
||||
.absolute()
|
||||
.top(paddings.top - px(3.))
|
||||
.right(paddings.right - px(3.))
|
||||
.top(top)
|
||||
.right(right)
|
||||
.small()
|
||||
.ghost()
|
||||
.icon(IconName::Close)
|
||||
|
|
|
|||
Loading…
Reference in a new issue