MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Wrap event title MMM-CalendarExt3

    Scheduled Pinned Locked Moved Utilities
    3 Posts 2 Posters 954 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      muhsintt
      last edited by

      Re: MMM-CalendarExt3

      Hello,

      Can you share a CSS or Node.js script that that wraps event titles into 2 or more lines when it does not fit in the cell?

      Thanks very much.

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        MMRIZE @muhsintt
        last edited by MMRIZE

        @muhsintt said in Wrap event title MMM-CalendarExt3:

        Re: MMM-CalendarExt3

        Hello,

        Can you share a CSS or Node.js script that that wraps event titles into 2 or more lines when it does not fit in the cell?

        Thanks very much.

        I don’t agree that kind of wrapped multi-lines are useful.

        Because it’s ugly and wastes space(unless using a 4K screen), it is not easy to glance at, and it is hard to recognise events. Just two-line wrapping may not be sufficient to display long titles. (How about 3 lines? Or 4 lines? no ends…)
        So, I intentionally designed this module like the current one looks. It is an old legacy concept from MMM-CalendarExt, (and MMM-CalendarExt2, …) All other major calendar applications on desktop or mobile keep the one-liner in month-type view. (Google Calendar, Apple calendar, MS Outlook, Fantastical, …)

        Anyway, usually, MM is regarded as just a dashboard to glance at, not a Franklin organizer.

        Even though 2liners could be possible with some tricks(I tried once), technically, It needs a ton of heavy CSS and JS tweaks. If you are not an expert, you probably ruin the whole look.

        I totally understand this ellipsed title may not be enough to read. What I suggest alternately are;

        • Use colour and symbols to distinguish some events.
        • Use abbreviations to shorten long titles.
          (For above two approaches, you can handle events with prepared handlers of this module)
        • Shorten time format. (22 is better than 10:00 PM)
        • Use popover feature to see details of the event. (When your MM device supports touch/click)
        • Use other sidekick modules to look for details, like MMM-CalendarExt3Agenda, Or the default calendar module.
        M 1 Reply Last reply Reply Quote 1
        • M Offline
          muhsintt @MMRIZE
          last edited by

          @MMRIZE
          Thanks for your reply and suggestions. I was able to wrap the text but unable to make to event size to auto adjust its height which resulted in the text being unreadable. I will follow your suggestions and work on alternatives.
          I appreciate you for all the time dedicated to building this module.
          Excellent work. :smiling_face:

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy