Skip to content

Commit

Permalink
refactor: Update lunar phase card editor with new icon for base confi…
Browse files Browse the repository at this point in the history
…guration
  • Loading branch information
ngocjohn committed Dec 10, 2024
1 parent d37c695 commit 523f619
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export class LunarPhaseCardEditor extends LitElement implements LovelaceCardEdit
<div class="comboboxes">${radios} ${southern}</div>
`}`;

return this.contentTemplate('baseConfig', 'baseConfig', 'mdi:cog', contentWrapp);
return this.contentTemplate('baseConfig', 'baseConfig', 'mdi:longitude', contentWrapp);
}

private _renderLocation(): TemplateResult {
Expand Down
6 changes: 3 additions & 3 deletions src/lunar-phase-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,15 +529,15 @@ export class LunarPhaseCard extends LitElement {
</div>`;

return html`
<lunar-star-field ._card=${this as any}></lunar-star-field>
<div class="calendar-container">
${this.config.hide_header ? nothing : this.renderHeader()}
<div class="calendar-wrapper">
${this.renderMoonImage()}${dateInput}
<div class="calendar-info" show=${this._calendarInfo}>${this.renderMoonData()}</div>
</div>
<div class="calendar-mini-popup" ?hidden=${!this._calendarPopup}></div>
<div class="calendar-mini-popup" ?hidden=${!this._calendarPopup}>
<lunar-calendar-popup .card=${this as any} .moon=${this.moon}></lunar-calendar-popup>
</div>
</div>
`;
}
Expand Down

0 comments on commit 523f619

Please sign in to comment.