github alexpfau/calendar-card-pro v2.4.5

latest releases: v3.1.0, v3.0.6, v3.0.5...
4 months ago

Calendar Card Pro v2.4.5

Consistent calendar display in all scenarios. This release fixes an important bug affecting the display of empty days when an API call returns no events.

🐛 Bug Fixes

Completely Consistent Empty Days Display

  • Unified Empty Days Logic - Removed separate rendering paths for different empty day scenarios, ensuring consistent behavior in all cases
  • Fixed Show Empty Days Setting - Corrected the handling of show_empty_days: true when the calendar API returns zero events
  • Proper Days To Show Respect - The card now correctly honors the days_to_show setting even when there are no calendar events
  • Single Code Path - Simplified the code by using a single, unified approach to empty days generation in all scenarios

📖 Documentation Improvements

New Card-Mod Examples

  • Time Next to Event Title - Added documentation for displaying time in the same row as event titles using card-mod, keeping location on its own row below:
card_mod:
  style: |
    div.event-content {
      display: grid;
      grid-template-areas: 
        "title time"
        "location location";
      grid-template-columns: 1fr auto;
      column-gap: 10px;
      row-gap: 0px;
    }

    div.summary {
      grid-area: title;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    div.time {
      grid-area: time;
      white-space: nowrap;
    }

    div.location {
      grid-area: location;
      white-space: normal;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    div.time-location {
      display: contents;
    }

Related Issues

This release addresses community-reported issues:

  • #37 - Added documentation for showing time in the same row as event titles using card-mod

How Has This Been Tested

Testing has been conducted across:

  • Empty calendar scenarios where API returns zero events
  • Multiple days_to_show values (2, 3, 5, 7)
  • Both show_empty_days: true and show_empty_days: false settings
  • Different combinations of compact and expanded modes
  • Various calendar entity configurations
  • Card-mod customization examples

Full Changelog: v2.4.4...v2.4.5

Don't miss a new calendar-card-pro release

NewReleases is sending notifications on new releases.