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

MMM-My Calendar Two Columns

Scheduled Pinned Locked Moved Unsolved Troubleshooting
14 Posts 2 Posters 5.4k Views 4 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.
  • C Offline
    ctag
    last edited by ctag Feb 25, 2019, 4:23 PM Feb 25, 2019, 4:22 PM

    @j-e-f-f , I tried putting that in MagicMirror/css/custom.css and it didn’t work. I tried each with nothing else in there and it still had … instead of finishing the title. If it matters, I have this on a raspberry pi 7" touch screen in landscape. It shows the divider lines going 3/4 across the screen, but the text only goes 1/3 or so.

    J 1 Reply Last reply Feb 25, 2019, 4:25 PM Reply Quote 0
    • J Offline
      j.e.f.f Project Sponsor Module Developer @ctag
      last edited by Feb 25, 2019, 4:25 PM

      @ctag I don’t have time right now, but I’ll look into this and give you some more specific CSS you can use. I know this is 100% possible because I have done exactly this on my kitchen display.

      1 Reply Last reply Reply Quote 0
      • C Offline
        ctag
        last edited by Feb 25, 2019, 4:26 PM

        Thank you!! I appreciate your time and effort in this.

        J 1 Reply Last reply Feb 25, 2019, 5:06 PM Reply Quote 0
        • J Offline
          j.e.f.f Project Sponsor Module Developer @ctag
          last edited by Feb 25, 2019, 5:06 PM

          @ctag Here is the CSS I used to make my calendar wider:

          .MMM-MyCalendar {
            max-width: none; /* this will allow the calendar to expand to the full width of the column */
          }
          
          .MMM-MyCalendar .calendar-event .title,
          .MMM-MyCalendar .calendar-event .time,
          .MMM-MyCalendar .calendar-event .location {
            padding-left: 0px; /* you may want to omit this if you get unexpected overlapping... */
            white-space: normal;
          }
          

          My mistake was suggested white-space:wrap when it should have been white-space:normal.

          1 Reply Last reply Reply Quote 0
          • C Offline
            ctag
            last edited by Feb 25, 2019, 5:10 PM

            @j-e-f-f , thanks! That did make the module full screen, however, the text still only goes 1/3 so it cuts off the event and puts …
            Sorry, I am pretty much a newbie to all of this. Just trying to learn as much as I can.

            J 1 Reply Last reply Feb 25, 2019, 5:18 PM Reply Quote 0
            • J Offline
              j.e.f.f Project Sponsor Module Developer @ctag
              last edited by Feb 25, 2019, 5:18 PM

              @ctag there may be a max-width setting going on for the title. Try something like this:

              .MMM-MyCalendar .calendar-event .title {
                max-width: none;
                width: 100%;
              }
              

              To get rid of the full-screen effect, remove this rule, or set it to a specific pixel width:

              .MMM-MyCalendar {
                max-width: none; /* remove this, or set it to something like 400px */
              }
              

              Also, if you have time have a read through my CSS 101 thread which will teach you how to inspect elements to see what CSS is applied so that you can effectively override it with your own preferred style:

              https://forum.magicmirror.builders/topic/6808/css-101-getting-started-with-css-and-understanding-how-css-works

              1 Reply Last reply Reply Quote 0
              • C Offline
                ctag
                last edited by Feb 25, 2019, 5:22 PM

                @j-e-f-f said in MMM-My Calendar Two Columns:

                .MMM-MyCalendar .calendar-event .title {
                max-width: none;
                width: 100%;
                }

                Thanks @j-e-f-f , unfortunately that did not work. I do appreciate your willingness to help. And thank you for the link. I will definitely have to take a look at that!

                J 1 Reply Last reply Feb 25, 2019, 5:27 PM Reply Quote 0
                • J Offline
                  j.e.f.f Project Sponsor Module Developer @ctag
                  last edited by Feb 25, 2019, 5:27 PM

                  @ctag something else is restricting the width of the title then. After you have had a read through CSS 101, try to inspect the parent elements of the title element one at a time to see if you can determine what is restricting the width.

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    ctag
                    last edited by Feb 25, 2019, 7:52 PM

                    @j-e-f-f I will… thanks again for all of your help. When you say go through all of the parent elements, are you referring in the custom css file, or the config.js file. The code you gave me is all that is in the css file. Hopefully I can find this.

                    J 1 Reply Last reply Feb 25, 2019, 8:44 PM Reply Quote 0
                    • J Offline
                      j.e.f.f Project Sponsor Module Developer @ctag
                      last edited by Feb 25, 2019, 8:44 PM

                      @ctag My guide explains how to use the dev tools to inspect the various HTML elements to see what CSS is applied. HTML is arranged in a nested format, with some within others. These outer elements are what I refer to as parent elements. Since our attempt to change the with of the title element of the calendar entry directly failed, it means that something else is restricting the width of the title. This usually means some CSS is being applied to a parent HTML element of the title element that is influencing the size of the title element. Have a read through the article I shared, and then try to familiarize yourself with the dev tools inspector. You’ll be using that to try and figure out what is restricting the size of the title.

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        9/14
                        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