FamousWolf / week-planner-card

Custom Home Assistant card displaying a responsive overview or multiple days with events from one of multiple calendars
MIT License
209 stars 17 forks source link

Suggestion - Limit events to display #129

Closed Mr-Staffman closed 2 months ago

Mr-Staffman commented 2 months ago

Hi and thanks for an awesome card. In my dashboard, I display only family events for the the current day in a small box. It would be nice to be able to set a limit of events to show. If there are more than 3 events on current day, it destroys my design.

This is not a big issue, I seldom have more than 3 family events for a single day.

Skärmavbild 2024-09-04 kl  10 51 06
FamousWolf commented 2 months ago

I think this is a bit to niche to add an configuration for, but you can already do this with card-mod:

card_mod:
  style: |
    .container .events .event:nth-child(n+4) {
      display: none;
    }

This will hide all events from the 4th for each day.

Mr-Staffman commented 2 months ago

That is Awesome and works like a charm. Thanks for this, you rule!!