[FEATURE] Add a compact all day events option#363
Conversation
Adds an "Inline all day events" toggle in the Events section of the editor. When enabled, all-day events render as a single line with the time label and title side-by-side and the title ellipsized, independent of compact mode. Description and location are always hidden in inline mode since the goal is to prevent any wrapping. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
In retrospect maybe I should rename inline all day events to compact all day events to keep with "compact mode" let me know if you prefer that |
Inline events broke additional color bars when calendars were collapsed due to the parent switching to centering its items and the div creating the bar having no height. This changes that dif to use align-self: stretch (the default) to restore it back.
4a6a79b to
f805b4e
Compare
|
I prefer "Compact all day events", but I also want to add an option to remove the "Entire day" text entirely. I'll see if I can add that to this PR today or tomorrow. |
|
Happy to make that change if you want. I wa sthinking I could change the compact mode toggle in appearance to a dropdown that's like Default, Compact Events, Compact All Day Events. Then I can add a toggle to Entire day under texts that's like No Prefix for all day events that if checked disables the text box |
Combine the existing `compact` boolean and the unreleased `inlineAllDayEvents` boolean into a single mutually-exclusive `displayMode` config: `default`, `compact`, or `compactAllDay`. `compact: true` is still honored as a fallback for cards saved before displayMode existed. Also add `hideEntireDayLabel` to suppress the "Entire day" label on all day events. The time wrapper is omitted entirely when set so its margin doesn't affect layout. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
Took a stab at this, it's now called compact all day events and I merged it with the compact apperance. This is now a dropdown in the editor and an enum (the boolean is checked for compatibility). I also added the hide entire day text prefix as a boolean next to where you can set the text prefix. Tested both options |
This change adds an "Inline all day events" toggle in the Events section of the editor. When enabled, all-day events render as a single line with the time label and title side-by-side and the title ellipsized, independent of compact mode. Description and location are always hidden in inline mode since the goal is to prevent any wrapping.
I had a high number of all day events and wanted them to take less vertical space. This gave me a way to compact those down without forcing the entire UI into compact mode.