Skip to content

Commit e1a0648

Browse files
committed
Code adjustments
1 parent 3842d64 commit e1a0648

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

core/src/components/col/col.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
width: 100%;
2727
max-width: 100%;
2828
min-height: 1px; // Prevent columns from collapsing when empty
29+
30+
--col-unit-size: calc((100% - (var(--ion-grid-columns, 12) - 1) * var(--ion-grid-gap)) / var(--ion-grid-columns, 12));
2931
}
3032

3133
:host(.ion-grid-col-auto){

core/src/components/row/row.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
// Row
44
// --------------------------------------------------
55
:host {
6-
--ion-col-gap: 0px;
6+
--ion-grid-gap: 0px;
77

88
display: flex;
99

1010
flex-wrap: wrap;
1111

12-
gap: var(--ion-col-gap, 0px);
12+
gap: var(--ion-grid-gap, 0px);
1313
}

0 commit comments

Comments
 (0)