Skip to content

Commit 6617a21

Browse files
authored
Merge pull request #146 from marksie1988/dev
v1.6.2
2 parents fe5da85 + 7865212 commit 6617a21

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

dist/atomic-calendar-revive.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "atomic-calendar-revive",
3-
"version": "1.6.1",
3+
"version": "1.6.2",
44
"description": "Calendar Card for Home Assistant",
55
"main": "atomic-calendar-revive.js",
66
"scripts": {

src/app.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,12 @@ class AtomicCalendarRevive extends LitElement {
527527
margin-left: -1px;
528528
}
529529
530+
.calDateSelector {
531+
display: inline-block;
532+
min-width: 9em;
533+
text-align: center;
534+
}
535+
530536
.loader {
531537
border: 4px solid #f3f3f3;
532538
border-top: 4px solid grey;
@@ -1002,14 +1008,12 @@ class AtomicCalendarRevive extends LitElement {
10021008
*/
10031009
getCalendarHeaderHTML() {
10041010
return html`
1005-
<div class="calTitle">
1006-
<ha-icon-button class="ha-icon-button" icon="mdi:chevron-left" @click='${e => this.handleMonthChange(-1)}' title = "left" ></ha-icon-button>
1007-
<div style="display: inline-block; min-width: 9em; text-align: center;">
1008-
<a href="https://calendar.google.com/calendar/r/month/${moment(this.selectedMonth).format('YYYY')}/${moment(this.selectedMonth).format('MM')}/1" style="text-decoration: none; color: ${this._config.calDateColor}" target="${this._config.linkTarget}">
1009-
${moment(this.selectedMonth).locale(this.language).format('MMMM')} ${moment(this.selectedMonth).format('YYYY')}
1010-
</a>
1011-
</div>
1012-
<ha-icon-button class="ha-icon-button" icon="mdi:chevron-right" @click='${e => this.handleMonthChange(1)}' title = "right" ></ha-icon-button>
1011+
<div class="calDateSelector">
1012+
<ha-icon-button class="ha-icon-button" icon="mdi:chevron-left" @click='${e => this.handleMonthChange(-1)}' title = "left" ></ha-icon-button>
1013+
<a href="https://calendar.google.com/calendar/r/month/${moment(this.selectedMonth).format('YYYY')}/${moment(this.selectedMonth).format('MM')}/1" style="text-decoration: none; color: ${this._config.calDateColor};position:relative; top:3px;" target="${this._config.linkTarget}">
1014+
${moment(this.selectedMonth).locale(this.language).format('MMMM')} ${moment(this.selectedMonth).format('YYYY')}
1015+
</a>
1016+
<ha-icon-button class="ha-icon-button" icon="mdi:chevron-right" @click='${e => this.handleMonthChange(1)}' title = "right" ></ha-icon-button>
10131017
</div >`
10141018
}
10151019

tracker.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"atomic-calendar-revive": {
33
"updated_at": "2020-05-28",
4-
"version": "1.6.1",
4+
"version": "1.6.2",
55
"remote_location": "https://github.com/marksie1988/atomic-calendar-revive/releases/latest/dist/atomic-calendar-revive.js",
66
"visit_repo": "https://github.com/marksie1988/atomic-calendar-revive",
77
"changelog": "https://github.com/marksie1988/atomic-calendar-revive/releases/latest"

0 commit comments

Comments
 (0)