• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Messed up CSS between Portrait and Landscape monitors

Scheduled Pinned Locked Moved Troubleshooting
24 Posts 3 Posters 11.7k Views 3 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.
  • D Offline
    Damian
    last edited by Feb 25, 2018, 10:46 PM

    0_1519598769773_final final.jpg

    N 1 Reply Last reply Feb 26, 2018, 1:05 AM Reply Quote 0
    • N Offline
      ninjabreadman @Damian
      last edited by Feb 26, 2018, 1:05 AM

      @Damian Does this work?

      .module.compliments {
      font-size: 73%;
      }
      

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

      D 1 Reply Last reply Feb 26, 2018, 1:08 PM Reply Quote 1
      • D Offline
        Damian @ninjabreadman
        last edited by Feb 26, 2018, 1:08 PM

        @ninjabreadman

        Unfortunatley not ☹
        I am now at a loss as to what to try now as this is first time trying MM on Landscape, and I am not liking it at all because I am unsure how to minimise the modules… a simple Zoom out would be perfect as my screen looks like its 100% zoomed in.😣

        N 1 Reply Last reply Feb 26, 2018, 1:17 PM Reply Quote 0
        • N Offline
          ninjabreadman @Damian
          last edited by ninjabreadman Feb 26, 2018, 3:29 PM Feb 26, 2018, 1:17 PM

          @Damian Use the built-in DOM inspector to see what styles are currently applied. Right-click on the compliments module and select ā€œInspectā€.

          Worst case, using !important should work:

          .module.compliments {
          font-size: 73% !important;
          }
          

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

          D 1 Reply Last reply Feb 26, 2018, 1:27 PM Reply Quote 2
          • D Offline
            Damian @ninjabreadman
            last edited by Feb 26, 2018, 1:27 PM

            @ninjabreadman

            Nope, that never worked either😣

            I cannot fathom out what is going on, even when I first loaded up the default MM it all looked too big. Thats why I then added in my config.js and CSS stuff from my Pi foders to see if they would help minimise things any.

            N 1 Reply Last reply Feb 26, 2018, 1:31 PM Reply Quote 0
            • N Offline
              ninjabreadman @Damian
              last edited by Feb 26, 2018, 1:31 PM

              @Damian Inspect the element, and share a screenshot of the div.module.compliments element styles. At this point, either (1) your CSS is not being applied, or (2) those aren’t the right classes to use to target that element. I suspect the latter.

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

              D 1 Reply Last reply Feb 26, 2018, 1:46 PM Reply Quote 1
              • D Offline
                Damian @ninjabreadman
                last edited by Damian Feb 26, 2018, 3:06 PM Feb 26, 2018, 1:46 PM

                @ninjabreadman

                Thanks, but do I download something onto the Pc to view? How do i inspect the element? There is nothing on that page to download, so how does the Dom inspector work?

                N 1 Reply Last reply Feb 26, 2018, 3:34 PM Reply Quote 1
                • N Offline
                  ninjabreadman @Damian
                  last edited by Feb 26, 2018, 3:34 PM

                  @Damian You don’t need to download anything. Use your mouse on the MagicMirror. Right-click the compliments module, and select ā€œInspect elementā€. Or, stop MM, then run npm start dev which will start in development mode with Chromium’s developer tools already open. You then just need to navigate the DOM to find the .compliments element. Follow these instructions to take a screenshot on an RPi.

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

                  D 1 Reply Last reply Feb 26, 2018, 5:28 PM Reply Quote 1
                  • D Offline
                    Damian @ninjabreadman
                    last edited by Damian Feb 26, 2018, 5:57 PM Feb 26, 2018, 5:28 PM

                    @ninjabreadman

                    šŸ˜‚ā€¦ by pure fluke I just found the very setting I was looking for, and never even knew it was there, or even noticed it until now when instead of my usual > alt > File > Exit… or >Window > Minimise, my mouse flicked on View, and there right in front of me was Zoom In - Zoom Out!

                    Only trouble is if I restart/reload MM it reverts back, and I have to zoom out again x 6 so it looks good… anyone know how to set it so it stays at my set zoom?

                    Thanks to all who assisted here to try and solve this… I will now sneak off in embarrasment😶

                    N 1 Reply Last reply Feb 26, 2018, 7:19 PM Reply Quote 0
                    • N Offline
                      ninjabreadman @Damian
                      last edited by Feb 26, 2018, 7:19 PM

                      @Damian I was hoping you wouldn’t have to resort to it, but you can use CSS transform: scale():

                      body {
                      transform: scale(0.8); /* for 80% */
                      }
                      

                      Some CSS transforms are processor intensive, although without animation should be fine on an RPi.

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

                      D 1 Reply Last reply Feb 26, 2018, 7:32 PM Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        11/24
                        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