• 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.

Changing Module Display Width

Scheduled Pinned Locked Moved General Discussion
24 Posts 6 Posters 19.4k Views 6 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.
  • B Offline
    broberg Project Sponsor @johnnyboy
    last edited by Feb 22, 2017, 4:00 PM

    @johnnyboy well, not entirely, the content (text etc.) don’t change in size, all you do is changing the surface that the content can take up.

    like moving from a big garage to a small, you still have the same amount of stuff but less area to put it in, so the stuff that doesn’t fit spills over and out on to the yard.

    J 1 Reply Last reply Feb 22, 2017, 4:16 PM Reply Quote 1
    • J Offline
      johnnyboy @broberg
      last edited by Feb 22, 2017, 4:16 PM

      @broberg
      Oh, ok… Well I will play about with it anyway just to see what that does to it… just so I will know for experience as its another learning curve i’ve learned

      B 1 Reply Last reply Feb 22, 2017, 4:19 PM Reply Quote 0
      • B Offline
        broberg Project Sponsor @johnnyboy
        last edited by broberg Feb 22, 2017, 4:20 PM Feb 22, 2017, 4:19 PM

        @johnnyboy You can do a lot to the Magicmirror and it’s module just by editing the css,

        Here is a good reference for CSS : https://www.w3schools.com/css/

        And css for beginners : http://www.htmldog.com/guides/css/beginner/

        1 Reply Last reply Reply Quote 2
        • J Offline
          johnnyboy @cowboysdude
          last edited by yawns Feb 23, 2017, 10:27 AM Feb 22, 2017, 4:57 PM

          @cowboysdude said in Changing Module Display Width:

           {
              module: 'MMM-History',
              position: 'top_right',
                   config: {
          	 maxWidth: "33%"
          		}
                    },
          

          Oooooo MM didn’t like that :-) So I musta entered something wrong or didn’t enter something I should have? Can you please guide me to what part I did wrong here?

           {
              module: 'MMM-WunderGround',
              position: 'top_left',
                   config: {
          	 maxWidth: "33%"
          		}
                    }, 
          apikey: 'pws: mydetailshere',
          hourly: '1',
          fctext: '1'
          
          B 1 Reply Last reply Feb 22, 2017, 5:03 PM Reply Quote 0
          • B Offline
            broberg Project Sponsor @johnnyboy
            last edited by Feb 22, 2017, 5:03 PM

            @johnnyboy maxWidth isn’t specified for the WunderGround module. So you can’t use the same config option there as you could with MMM-History.

            Confusing I know, but most modules don’t use size settings in the config since it’s better to set that with css code.

            Custom css-code is put in the file custom.css that can be found in the css folder.

            J 1 Reply Last reply Feb 22, 2017, 5:37 PM Reply Quote 1
            • J Offline
              johnnyboy @broberg
              last edited by yawns Feb 23, 2017, 10:27 AM Feb 22, 2017, 5:37 PM

              @broberg

              Ah, ok… I was jumping ahead of myself there… so I will try

              .MMM-WunderGround {
                  width : 200px;
              }
              

              200px; or whatever looks good.
              Thanks again.

              J 1 Reply Last reply Feb 22, 2017, 8:17 PM Reply Quote 1
              • J Offline
                johnnyboy @johnnyboy
                last edited by johnnyboy Feb 22, 2017, 8:21 PM Feb 22, 2017, 8:17 PM

                I changed mines to 250px as that was about maxed out or else it would move the large Moon icon onto top bar and would become 1/3 of its original size and not look right, or look good… so I’m pretty happy at that.

                However, I thought to do the same thing to the calendar that’s directly opposite, on the top right…to keep the aspect look… Nope! It wont budge for some reason?
                Side effect now is a slight 5 - 7 second load time to WunderGround, Calendar, and News feed on bottom bar… No idea if this is linked or no?No effect at all on Compliments or SimpleLogo.
                .Module_calendar {
                width : 250px;
                }

                No idea if this is relevant, but should I have included the calendar header Uk Holidays? My calendar is also linked to Google Calendar so no idea if that could be a reason either why it wont allow width to be adjusted, but thought to mention

                B 1 Reply Last reply Feb 22, 2017, 8:18 PM Reply Quote 0
                • B Offline
                  broberg Project Sponsor @johnnyboy
                  last edited by Feb 22, 2017, 8:18 PM

                  @johnnyboy I think it should be just .calendar not .Module_calendar

                  J 1 Reply Last reply Feb 22, 2017, 8:21 PM Reply Quote 1
                  • J Offline
                    johnnyboy @broberg
                    last edited by johnnyboy Feb 22, 2017, 8:25 PM Feb 22, 2017, 8:21 PM

                    @broberg
                    ok will try that now… Yes that did it… I didn’t know not to include .Module there… Thought they all had the same command, apart from MMM

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      deadherring
                      last edited by Mar 29, 2017, 7:40 PM

                      Hi,

                      I have my MM configured vertically and a lot of the calendar entries get cut off. I’m trying to widen the calendar.

                      This is what I’ve added to custom.css but I’m not seeing any change. (sorry, I’m not sure how to make the code show up in a special way the way others do)

                      body {
                      .MMM-calendar {
                      width : 350px;
                      }
                      }

                      Can someone point me in the right direction in terms of what I’m doing wrong?

                      Thanks,

                      Nathan

                      B 1 Reply Last reply Mar 29, 2017, 8:41 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      • 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