Skip to content

Commit

Permalink
Make sure that the gaps are fixed sized.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdotdesign committed Jun 25, 2021
1 parent dad1ad4 commit aa6ead8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions source/Container.mint
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ component Ui.Container {
style gap {
height: #{Ui.Size.toString(gap)};
width: #{Ui.Size.toString(gap)};
flex: 0 0 auto;
}

/* Renders the component. */
Expand Down
11 changes: 6 additions & 5 deletions source/Field.mint
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ component Ui.Field {
}
}

/* Style for the divider. */
style divider {
/* Style for the gap. */
style gap {
flex: 0 0 auto;
height: 0.5em;
width: 0.5em;
}
Expand Down Expand Up @@ -90,7 +91,7 @@ component Ui.Field {
<{ children }>
</div>

<div::divider/>
<div::gap/>

<div::label>
<{ label }>
Expand All @@ -103,7 +104,7 @@ component Ui.Field {
<{ label }>
</div>

<div::divider/>
<div::gap/>

<div>
<{ children }>
Expand All @@ -116,7 +117,7 @@ component Ui.Field {
Maybe::Just(message) =>
<div::error>
<Ui.Icon icon={Ui.Icons:ALERT}/>
<div::divider/>
<div::gap/>
<{ message }>
</div>

Expand Down

0 comments on commit aa6ead8

Please sign in to comment.