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.

    Border

    Scheduled Pinned Locked Moved Troubleshooting
    14 Posts 5 Posters 9.2k Views 5 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.
    • P Offline
      Peter
      last edited by

      I have no idea how to change the settings.
      All the modules on the right side are in the right_top region.
      All modules are positioned well untill the movie with the long title apears.
      If somebody has a solution; please explain me how to fix it.
      Peter

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

        @Peter Suggest you try this to limit the width of the MMM-MovieListings module:

        .module.MMM-MovieListings {
          max-width: 400px; /* adjust as needed */
        }
        

        You said it’s a long title, but isn’t the title “Every Day”? Is it the movie tagline stretching the
        module? I think you could target it with something like this:

        .module.MMM-MovieListings div div:nth-child(2) {
          white-space: normal; /* why is it not wrapping? strange */
          word-wrap: normal; /* break the text to a new line */
        }
        

        There are no classes, so I’m just eyeballing something based on the markup generated here.

        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
        • P Offline
          Peter
          last edited by

          Thank you for your help!
          Unfortunately it did not work.
          Peter

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

            @Peter can you share your MMM-MovieListings config? I’ll try to replicate the issue.

            If you start MM with npm start dev, you can use the DOM inspector to see Inspect the MMM-MovieListings module (or just press Ctrl+Alt+I). What classes does the module have? Can you see your CSS being applied?

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

            P 1 Reply Last reply Reply Quote 0
            • P Offline
              Peter @ninjabreadman
              last edited by

              @ninjabreadman I feel really stupid, but starting MM with npm start dev fails.
              And I have no idea what the DOM inspector is.
              Very sorry for that.
              This is the MMM-MovieListings config:

              	{
              			module: "MMM-MovieListings",
              			position: "top_right",
                				// Default module config.
              				defaults: {
                  				apiKey: '04b3f48b71a2ac28797f94d0201a68f6',
              				region: 'NL',
                  				language: 'en-EN',
                  				interface: 'poster', //'list', 'poster', 'detailed'
                  				includeMoviePlot: false,
                  				maxPlotLength: 198,
                  				header: 'Nu in de bioscoop',
                  				moviesPerPage: 0,
                  				refreshInterval: 1000 * 60 * 60 * 24, //Once a day
                  				baseUrl: 'https://api.themoviedb.org/3/movie/now_playing',
                  				animationSpeed: 2.5 * 1000,
                  				pageChangeInterval: 30 * 1000
              		}		
              		},
              

              Peter

              1 Reply Last reply Reply Quote 0
              • P Offline
                Peter
                last edited by

                Every movie is displayed well except “Every day”.
                This movie has a very long line in the (sub)title:
                “Every day a different body, every day a different life, every day in love with the same girl”
                That long line is causing the problem.
                I hope you can help!
                Peter

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

                  Hi @Peter,

                  I installed the module with your config (although config was called defaults, which took a while to debug).

                  This works for me:

                  .module.MMM-MovieListings {
                    max-width: 320px; /* adjust as needed */
                  }
                  

                  As seen here:
                  0_1520073192748_Screen Shot 2018-03-03 at 5.32.08 AM.png

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

                  P 1 Reply Last reply Reply Quote 0
                  • P Offline
                    Peter @ninjabreadman
                    last edited by

                    @ninjabreadman thanks a lot!
                    This works!
                    I am very happy with your help.
                    Peter

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