MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Calendar module width limit

    Bug Hunt
    2
    3
    1818
    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.
    • Y
      yomm last edited by

      Hello all !

      My installation is on a rpi3. My mirror/screen is a 20’ with a 1650*1050 resolution. MM² and modules are up to date.

      I use Calendar module for a while, his position on the mirror is top_left.

      Recently I add some other calendars with some long name meetings.
      I got a strange behavior : the calendar module expands from the left of the screen to the middle. This happens when long name event are schedule.
      I tried MyCalendar module which is based on Calendar. Same thing happens.

      So is there a way to limit the width of the calendar module to prevent it spreading on the half of the screen ?

      Thanks for your help !

      N 1 Reply Last reply Reply Quote 0
      • N
        ninjabreadman @yomm last edited by ninjabreadman

        @yomm There are different regions, but most will expand to try to accommodate your content/text.

        See this post moments ago here, where I give advice on how to limit the width. In your case, I believe the selector is .module.calendar.

        You can also use the CSS word-wrap property to make your events break to the next line, or text-overflow to display an ellipsis when they’re cut off.

        Problem with config or JavaScript? Copy/paste it into JSHint.
        Check out the detailed walkthroughs on install, config, modules, etc.

        1 Reply Last reply Reply Quote 0
        • Y
          yomm last edited by yomm

          Thank you ninjjabreadman !

          Exactly what I need !

          .module.MMM-MyCalendar {
          max-width: 300px; 
          }
          
          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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy