Skip to content

Commit 043a96a

Browse files
committed
fix: update size of z-toast
1 parent 41398c0 commit 043a96a

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

src/components/atoms/a-card/a-card.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
--a-card--box-shadow: none;
55
--a-card--padding: var(--size-large);
66
--a-card--color: inherit;
7+
--a-card--border-radius: var(--border-radius-normal);
78

89
background-color: var(--a-card--background-color);
910
border: var(--a-card--border);
10-
border-radius: var(--border-radius-normal);
11+
border-radius: var(--a-card--border-radius);
1112
box-shadow: var(--a-card--box-shadow);
1213
color: var(--a-card--color);
1314
padding: var(--a-card--padding);

src/components/molecules/a-toast/a-toast.vue

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
['a-toast__item--inverse']: item.variant
1313
&& (item.variant !== 'warn')
1414
&& (item.variant !== 'default')
15-
&& (item.variant !== 'tertiary'),
15+
&& (item.variant !== 'tertiary')
16+
&& (item.variant ),
1617
[`${item.variant}`]: item.variant
1718
}"
1819
:variant="item.variant"
@@ -72,28 +73,38 @@ export default {
7273
</script>
7374

7475
<style lang="scss">
76+
@import '@/styles/utils/index';
77+
7578
.a-toast {
7679
overflow: hidden;
7780
position: fixed;
7881
max-height: 100vh;
79-
max-width: 380px;
80-
padding-right: 24px;
8182
right: 0px;
82-
top: 24px;
8383
width: 100%;
8484
z-index: 100;
85+
top: 0;
86+
87+
@include for-mobile-up{
88+
top: 24px;
89+
max-width: 380px;
90+
padding-right: 24px;
91+
}
8592
8693
&__item {
87-
--a-card--padding: 16px;
88-
margin: 4px;
94+
--a-card--padding: 16px !important;
95+
8996
align-items: center;
9097
display: flex;
9198
position: relative;
9299
width: 100%;
93-
margin-bottom: 8px;
100+
101+
@include for-mobile-up {
102+
margin: 4px;
103+
margin-bottom: 8px;
104+
}
94105
95106
&--inverse {
96-
color: var(--color-theme-inverse);
107+
color: var(--color-theme-inverse) !important;
97108
}
98109
}
99110

0 commit comments

Comments
 (0)