Skip to content

Commit

Permalink
Merge branch '188059216-solar-intensity-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
pjanik committed Aug 20, 2024
2 parents 1524511 + 7a1ac5b commit 5f23296
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/grasp-seasons/components/seasons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@ body {
.solar-intensity {
margin-top: 10px;
margin-bottom: 30px;

.solar-intensity-value-and-unit {
display: inline-block;

.solar-intensity-value {
display: inline-block;
width: 46px;
white-space: nowrap;
}
}
}

select {
Expand Down
5 changes: 4 additions & 1 deletion src/grasp-seasons/components/seasons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,10 @@ const Seasons: React.FC<IProps> = ({ lang = "en_us", initialState = {}, log = (a
<div className="sunlight-at-noon">{ t("~SUNLIGHT_AT_NOON", simLang) }</div>
<div className="solar-intensity">
<label>{ t("~SOLAR_INTENSITY", simLang) }: </label>
{ solarIntensityValue } { t("~SOLAR_INTENSITY_UNIT", simLang) }
<div className="solar-intensity-value-and-unit">
<div className="solar-intensity-value">{ solarIntensityValue }</div>
{ t("~SOLAR_INTENSITY_UNIT", simLang) }
</div>
</div>
<MyLocations
lat={simState.lat}
Expand Down

0 comments on commit 5f23296

Please sign in to comment.