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.

    Calendar maximumEntries vs. maximum height

    Scheduled Pinned Locked Moved Solved Troubleshooting
    4 Posts 2 Posters 285 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
      MikeBishop
      last edited by

      Some of the events that I’m pulling from external calendars have long names, and they wrap onto two (or more!) lines. While the calendar module exposes an option to control the maximum number of entries which appear, if a couple of these long entries come along, the calendar module grows excessively to contain them.

      Is there a way, whether by module config or CSS, to limit the maximum number of lines in the calendar, or the maximum height? (I’ve tried height limitations in CSS, but the module appears to happily expand past the bounding box if the content is large.)

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @MikeBishop
        last edited by

        @MikeBishop you can set overflow:hidden on the div css, it should truncate the content at the size you set (also in css)

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Reply Quote 1
        • M Offline
          MikeBishop @sdetweil
          last edited by

          @sdetweil Simple enough! Thanks! I added this to custom.css:

          div#module_5_calendar {
            overflow: hidden;
            max-height: 210px;
          }
          
          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @MikeBishop
            last edited by

            @MikeBishop can you mark this resolved?

            click the 3dots beside the post that best articulates the answer

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • M MikeBishop has marked this topic as solved on
            • 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