Skip to content

Commit 6e24a42

Browse files
authored
fix(QIcon): use content-box sizing to prevent shrinking when using padding quasarframework#7158 (quasarframework#7170)
1 parent bc76bd9 commit 6e24a42

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

ui/src/components/icon/QIcon.sass

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
direction: ltr
1010
text-align: center
1111
position: relative
12+
box-sizing: content-box
1213

1314
fill: currentColor // for svg paths
1415

ui/src/components/icon/QIcon.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
direction: ltr
1010
text-align: center
1111
position: relative
12+
box-sizing: content-box
1213

1314
fill: currentColor // for svg paths
1415

ui/src/plugins/Notify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ const Notifications = {
341341
if (notif.icon) {
342342
mainChild.push(
343343
h(QIcon, {
344-
staticClass: 'q-notification__icon col-auto',
344+
staticClass: 'q-notification__icon',
345345
attrs: { role: 'img' },
346346
props: { name: notif.icon }
347347
})

ui/src/plugins/Notify.sass

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ body.q-ios-padding .q-notifications__list
4040

4141
&__icon
4242
font-size: 24px
43-
padding-right: 16px
43+
margin-right: 16px
44+
flex: 0 0 1em
4445

4546
&__avatar
4647
font-size: 32px

ui/src/plugins/Notify.styl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ body.q-ios-padding .q-notifications__list
4040

4141
&__icon
4242
font-size: 24px
43-
padding-right: 16px
43+
margin-right: 16px
44+
flex: 0 0 1em
4445

4546
&__avatar
4647
font-size: 32px

0 commit comments

Comments
 (0)