MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    SOLVED default calendar - multi line events - can't change to single

    Troubleshooting
    2
    3
    298
    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.
    • U
      uk-Pedro last edited by

      Hi,

      I can’t seem to make a long events name truncate. Even when the event name is short sometimes the date causes the line to go to double lines like below:
      0_1574508159695_IMG_20191123_110919.jpg

      My code is below:

      {
      		module: "calendar",
      		header: "Pedro",
      		position: "top_left",
      		config: {
      			timeFormat: "absolute",
      			getRelative: "0",
      			dateFormat: "Do MMM HH:mm",
      			maximumEntries: '10',
      			maxTitleLength: '20',
      			wrapEvents:'false',
      			calendars: [
      				{
      		
      

      Any help appreciated.

      Cheers,
      Pedro

      broberg 1 Reply Last reply Reply Quote 0
      • broberg
        broberg Project Sponsor @uk-Pedro last edited by

        @uk-Pedro

        Okey, first of, you need to alter your config since as it is now it won’t use your values.
        When the configuration is a pure number you don’t use " or ' you just enter the number.
        The same goes if the options are true or false.

        so your config should look like this :

        {
        		module: "calendar",
        		header: "Pedro",
        		position: "top_left",
        		config: {
        			timeFormat: "absolute",
        			getRelative: 0,
        			dateFormat: "Do MMM HH:mm",
        			maximumEntries: 10,
        			maxTitleLength: 20,
        			wrapEvents:false,
        			calendars: [
        				{
        		
        

        And I don’t get the row break as you do, do you have any other restrictions in your custom.css?

        1 Reply Last reply Reply Quote 0
        • U
          uk-Pedro last edited by

          Yep - you sorted it!

          Thanks for the help.

          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