MagicMirror icon indicating copy to clipboard operation
MagicMirror copied to clipboard

Issue: Alignment of weekday is incorrect when displaying analog clock and calendar

Open qnimbus opened this issue 9 years ago • 1 comments

Platform: Raspberry Pi 3 & Windows 10 Chrome 59.0.3071.109 (Official Build) (64-bit)

Node Version: Node v6.10.3

MagicMirror Version: v2.1.2-dev (develop branch)

Description: When displaying the analog clock and a calendar in the left sidebar where the calendar has entries longer than a certain amount of characters, it throws the alignment of the date display off. This is due to the div's inline text-align: center style.

Steps to Reproduce: Load the clock module with an analog clock and the calendar module where the calendar module has a few longer entries.

Expected Results: Same alignment as when using the digital clock. (i.e. text of weekday display aligned to the left of the screen/div) See screenshot for the expected result :

capture_censored2

Actual Results: capture_censored

Configuration: My config.js (snippet)

		{
			module: "clock",
			position: "top_left",
			config: {
				showWeek: true,
				clockBold: false,
				displayType: "digital"
			}
		},
		{
			module: "calendar",
			position: "top_left",
			header: "<i class=\"fa fa-group\" aria-hidden=\"true\"></i> Familie",
			disabled: false,
			config: {
				calendars: [
					{
						wrapEvents: true,
						symbol: "",
						maximumEntries: 8,
						maximumNumberOfDays: 56,
						url: "https://calendar.google.com/calendar/ical/-censored-/basic.ics"
					}
				]
			}
		},

Additional Notes: The .css of the analog clock also has margin-left and margin-right set to auto which places the analog clock in the center of the div when a large calendar is displayed.

qnimbus avatar Jun 26 '17 12:06 qnimbus

This issue was fixed in commit 5a2d38

qnimbus avatar Jul 02 '17 10:07 qnimbus