Skip to content

Commit 9217e3e

Browse files
committed
fix: Alert "left" and "right" position
1 parent e1f30c0 commit 9217e3e

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

src/components/alert/QAlert.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ export default {
9696
return this.icon || typeIcon[this.color] || typeIcon.warning
9797
},
9898
containerClass () {
99-
if (this.position) {
100-
return `fixed-${this.position} z-alert`
99+
const pos = this.position
100+
if (pos) {
101+
return `fixed-${pos}${pos === 'left' || pos === 'right' ? ' row items-center' : ''} z-alert`
101102
}
102103
},
103104
classes () {

src/components/alert/alert.ios.styl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
.q-alert-container
2+
pointer-events none
3+
14
.q-alert
25
color $alert-color
36
background $alert-background
47
border-radius $alert-border-radius
58
min-width $alert-min-width
9+
pointer-events all
610

711
.q-alert-icon, .q-alert-content
812
padding $alert-padding

src/components/alert/alert.mat.styl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
.q-alert-container
2+
pointer-events none
3+
14
.q-alert
25
color $alert-color
36
background $alert-background
47
border-radius $alert-border-radius
58
min-width $alert-min-width
9+
pointer-events all
610

711
.q-alert-icon, .q-alert-content
812
padding $alert-padding

src/css/core/orientation.styl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
transform rotate(205deg)
1111
.rotate-270
1212
transform rotate(270deg)
13+
.rotate-315
14+
transform rotate(315deg)
1315
.flip-horizontal
1416
transform scale(-1, 1)
1517
.flip-vertical

0 commit comments

Comments
 (0)