Merge pull request #929 from QNimbus/clock-alignment-pr

Issue with date alignment in clock.js
This commit is contained in:
Michael Teeuw 2017-06-29 09:24:55 +02:00 committed by GitHub
commit 5a2d386976
3 changed files with 2 additions and 2 deletions

View File

@ -38,6 +38,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Fix double message about port when server is starting - Fix double message about port when server is starting
- Corrected Swedish translations for TODAY/TOMORROW/DAYAFTERTOMORROW. - Corrected Swedish translations for TODAY/TOMORROW/DAYAFTERTOMORROW.
- Removed unused import from js/electron.js - Removed unused import from js/electron.js
- Fixed alignment of analog clock when a large calendar is displayed in the same side bar
## [2.1.1] - 2017-04-01 ## [2.1.1] - 2017-04-01

View File

@ -180,7 +180,6 @@ Module.register("clock",{
wrapper.appendChild(weekWrapper); wrapper.appendChild(weekWrapper);
} else if (this.config.displayType === "analog") { } else if (this.config.displayType === "analog") {
// Display only an analog clock // Display only an analog clock
dateWrapper.style.textAlign = "center";
if (this.config.showWeek) { if (this.config.showWeek) {
weekWrapper.style.paddingBottom = "15px"; weekWrapper.style.paddingBottom = "15px";

View File

@ -1,5 +1,5 @@
.clockCircle { .clockCircle {
margin: 0 auto; margin: 0;
position: relative; position: relative;
border-radius: 50%; border-radius: 50%;
background-size: 100%; background-size: 100%;