Skip to content

Commit

Permalink
Merge branch 'pr/1447' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Laské committed Jan 5, 2024
2 parents fbf5573 + 7aa7bab commit 3ff8cb8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fototoon Activity: interactive buttons appears under the box shape #1221
- "Help" pop-ups nearly impossible to close in Chrome on Mobile #1403
- XSS injections on Labyrinth JS and Paint Activity #787
- Style for Planet Info in Planet Activity is Hard to See #1448

## [1.7.0] - 2023-03-28
### Added
Expand Down
8 changes: 8 additions & 0 deletions activities/Planets.activity/css/activity.css
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,14 @@ body {
margin-top: 25px;
}

.info p{
font-size: 14px;
margin: 4px;

}
.info p:first-of-type{
font-weight: 600;
}
canvas {
position: absolute;
top: 0;
Expand Down
16 changes: 8 additions & 8 deletions activities/Planets.activity/js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,14 +334,14 @@ define(["sugar-web/activity/activity", "sugar-web/env", "sugar-web/datastore", "
planetInfo.appendChild(information);
}

document.getElementById("Name").innerHTML = '<p>' + l10n.get("PlanetName") + '</br>' + l10n.get(name) + '</p>';
document.getElementById("Type").innerHTML = '<p>' + l10n.get("PlanetType") + '</br>' + l10n.get(type.replace(/\s+/g, '')) + '</p>';
document.getElementById("Year").innerHTML = '<p>' + l10n.get("YearLength") + '</br>' + l10n.get("EarthDays", {year:year}) + '</p>';
document.getElementById("Mass").innerHTML = '<p>' + l10n.get("Mass") + '</br>' + mass + '</p>';
document.getElementById("Temperature").innerHTML = '<p>' + l10n.get("SurfaceTemperature") + '</br>' + temperature + '</p>';
document.getElementById("Moons").innerHTML = '<p>' + l10n.get("NumberOfMoons") + '</br>' + moons + '</p>';
document.getElementById("Radius").innerHTML = '<p>' + l10n.get("PlanetRadius") + '</br>' + radius + '</p>';
document.getElementById("SunDistance").innerHTML = '<p>' + l10n.get("SunDistance") + '</br>' + sunDistance + '</p>';
document.getElementById("Name").innerHTML = '<p>' + l10n.get("PlanetName") + '</p><p>' + l10n.get(name) + '</p>';
document.getElementById("Type").innerHTML = '<p>' + l10n.get("PlanetType") + '</p><p>' + l10n.get(type.replace(/\s+/g, '')) + '</p>';
document.getElementById("Year").innerHTML = '<p>' + l10n.get("YearLength") + '</p><p>' + l10n.get("EarthDays", {year:year}) + '</p>';
document.getElementById("Mass").innerHTML = '<p>' + l10n.get("Mass") + '</p><p>' + mass + '</p>';
document.getElementById("Temperature").innerHTML = '<p>' + l10n.get("SurfaceTemperature") + '</p><p>' + temperature + '</p>';
document.getElementById("Moons").innerHTML = '<p>' + l10n.get("NumberOfMoons") + '</p><p>' + moons + '</p>';
document.getElementById("Radius").innerHTML = '<p>' + l10n.get("PlanetRadius") + '</p><p>' + radius + '</p>';
document.getElementById("SunDistance").innerHTML = '<p>' + l10n.get("SunDistance") + '</p><p>' + sunDistance + '</p>';

saveImage = function(){

Expand Down

0 comments on commit 3ff8cb8

Please sign in to comment.