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.

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

    Scheduled Pinned Locked Moved Solved Troubleshooting
    3 Posts 2 Posters 659 Views 1 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.
    • U Offline
      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

      brobergB 1 Reply Last reply Reply Quote 0
      • brobergB Offline
        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 Offline
          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 Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy