Skip to content

Commit aa6ead8

Browse files
committed
Make sure that the gaps are fixed sized.
1 parent dad1ad4 commit aa6ead8

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

source/Container.mint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ component Ui.Container {
3737
style gap {
3838
height: #{Ui.Size.toString(gap)};
3939
width: #{Ui.Size.toString(gap)};
40+
flex: 0 0 auto;
4041
}
4142

4243
/* Renders the component. */

source/Field.mint

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ component Ui.Field {
5252
}
5353
}
5454

55-
/* Style for the divider. */
56-
style divider {
55+
/* Style for the gap. */
56+
style gap {
57+
flex: 0 0 auto;
5758
height: 0.5em;
5859
width: 0.5em;
5960
}
@@ -90,7 +91,7 @@ component Ui.Field {
9091
<{ children }>
9192
</div>
9293

93-
<div::divider/>
94+
<div::gap/>
9495

9596
<div::label>
9697
<{ label }>
@@ -103,7 +104,7 @@ component Ui.Field {
103104
<{ label }>
104105
</div>
105106

106-
<div::divider/>
107+
<div::gap/>
107108

108109
<div>
109110
<{ children }>
@@ -116,7 +117,7 @@ component Ui.Field {
116117
Maybe::Just(message) =>
117118
<div::error>
118119
<Ui.Icon icon={Ui.Icons:ALERT}/>
119-
<div::divider/>
120+
<div::gap/>
120121
<{ message }>
121122
</div>
122123

0 commit comments

Comments
 (0)