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.

    MMM-CalendarExt3 display time on separate line

    Scheduled Pinned Locked Moved Utilities
    5 Posts 3 Posters 353 Views 3 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.
    • R Offline
      rchacon
      last edited by

      Hello

      I’m new using MagicMirror and currently using CalendarExt3, currently the time and tittle are showing as one line which doesn’t left enough space to read the title.

      1a5f9f13-3cd3-4499-929c-467aa7c8c341-image.png

      Already have marquee enabled but the time time doesn’t scrolls.

      Is it possible to display the time as a separate line? something like:

      13:00
      Test
      

      instead of

      13:00 test
      

      Thanks in advance!

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        chrisfr1976 @rchacon
        last edited by

        @rchacon Hi, you can add useMarquee:true, in your config. Maybe that’s better. If you have 3 events on one day then you’re already at the limit with the row height if you wrap the text.

        Regards, Chris.

        S 1 Reply Last reply Reply Quote 0
        • S Away
          sdetweil @chrisfr1976
          last edited by sdetweil

          @chrisfr1976 says he has marquee set already

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            chrisfr1976 @sdetweil
            last edited by

            @sdetweil Aha! I need to wear my glasses :)

            @rchacon, you can try this:

            go to the CSS and do some modifications (better use custom.css):

            .CX3 .eventContainer {
              z-index: 20;
              position: absolute;
              top: var(--cellheaderheight); /* try, if too litte space, remove that*/
              left: 0;
              width: 100%;
              height: auto;
              display: grid;
            }
            

            then

            .CX3 .event {
              margin: 2px 5px;
              padding: 2px 2px;
               grid-row: span 1;
              text-align: left;
              color: var(--calendarcolor);
              display: flex;
               justify-content: flex-start;
              gap: 2px;
              text-overflow: clip; /* Prevent truncation */
              overflow: visible; /* Allow content to overflow the container */
              white-space: normal; /* Allow text wrapping */
              min-width: 0;
              position: relative;
              border-radius: 8px;
            }
            

            and

            .CX3 .event .headline {
              display: flex;
              flex-direction: row;
              justify-content: flex-start;
              align-items: flex-start; /* Align items at the top to allow height adjustment */
              gap: 2px;
              min-width: 0;
              flex: 1;
              flex-wrap: wrap; /* Allows children to wrap to the next row if needed */
            }
            

            If the event title is very long this can be annoying. But is you can control this to keep it a little shorter than “Behandlung von Hemiplegiepatienten in der Spätphase” it can be helpful.

            Regards, Chris.

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              rchacon @chrisfr1976
              last edited by

              @chrisfr1976 thank you!
              This worked great to show the tittle below the time when the tittle is longer than the cell.

              699b3da1-890d-4789-b52e-9c59cf381568-image.png

              I need to invest some time with css.

              1 Reply Last reply Reply Quote 1
              • 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