Skip to content

Commit

Permalink
fix: calendar view currentDay becomes distorted
Browse files Browse the repository at this point in the history
  • Loading branch information
marksie1988 committed Sep 14, 2023
1 parent 0dc423d commit df5a86f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,8 @@ export class AtomicCalendarRevive extends LitElement {
style="${dayStyleOtherMonth}${dayStyleSat}${dayStyleSun}${dayStyleClicked} --cal-grid-color: ${this._config
.calGridColor}; --cal-day-color: ${this._config.calDayColor}"
>
<div class="calDay ${dayClassToday}">
<div style="position: relative; top: 5%;">${day.date.date()}</div>
<div class="calDay">
<div class="${dayClassToday}" style="position: relative; top: 5%;">${day.date.date()}</div>
<div>${handleCalendarIcons(day)}</div>
</div>
</td>
Expand Down
13 changes: 6 additions & 7 deletions src/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,17 +299,16 @@ export const styles: CSSResultGroup = css`
margin: auto;
}
.calDay.currentDay {
.currentDay {
position: relative;
width: 20px;
height: 20px;
background-color: var(--primary-color);
color: var(--text-primary-color) !important;
text-align: center;
line-height: 20px;
border-radius: 50%;
display: inline-block;
text-align: center;
white-space: nowrap;
width: max-content;
min-width: 20px;
line-height: 140%;
color: var(--text-primary-color) !important;
}
tr.cal {
Expand Down

0 comments on commit df5a86f

Please sign in to comment.