File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,7 @@ const IssueButton = styled.button`
9
9
border-radius: 5px;
10
10
display: inline-block;
11
11
font-size: 12px;
12
- padding: 4px;
13
-
14
- span {
15
- margin-left: 4px;
16
- }
12
+ padding: 2px 4px;
17
13
`
18
14
19
15
export default function NarrativeItinerariesHeader ( {
@@ -62,7 +58,14 @@ export default function NarrativeItinerariesHeader ({
62
58
< Icon type = 'arrow-left' /> View all options
63
59
</ button >
64
60
65
- { itineraryIsExpanded && < SaveTripButton /> }
61
+ { itineraryIsExpanded && (
62
+ // marginLeft: auto is a way of making something "float right"
63
+ // within a flex container
64
+ // see https://stackoverflow.com/a/36182782/269834
65
+ < div style = { { marginLeft : 'auto' } } >
66
+ < SaveTripButton />
67
+ </ div >
68
+ ) }
66
69
</ >
67
70
: < >
68
71
< div
@@ -76,7 +79,7 @@ export default function NarrativeItinerariesHeader ({
76
79
</ span >
77
80
{ errors . length > 0 && (
78
81
< IssueButton onClick = { onToggleShowErrors } >
79
- < Icon type = 'warning' />
82
+ < Icon style = { { fontSize : 11 , marginRight : 2 } } type = 'warning' />
80
83
< span > { errors . length } issues</ span >
81
84
</ IssueButton >
82
85
) }
You can’t perform that action at this time.
0 commit comments