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-QuotesFromReddit

    Scheduled Pinned Locked Moved Entertainment
    magic mirrorquotesrandom
    10 Posts 4 Posters 5.0k 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @bthuilot
      last edited by

      @bthuilot said in MMM-QuotesFromReddit:

      Ideally meant to replace the compliments module.

      Blasphemy! ;-)

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • S Offline
        Spankythemusical
        last edited by

        Is there any way to add a css file to control the font size? While this is an unbelievably wonderful module, the quotes come in so large that it sometimes takes up half the screen.

        Mykle1M 1 Reply Last reply Reply Quote 0
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer @Spankythemusical
          last edited by

          @Spankythemusical said in MMM-QuotesFromReddit:

          Is there any way to add a css file to control the font size?

          The readme for the compliments module:
          https://github.com/MichMich/MagicMirror/tree/develop/modules/default/compliments

          Configuration options

          classes

          Override the CSS classes of the div showing the compliments

          Default value: thin xlarge bright

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • S Offline
            Spankythemusical
            last edited by

            While it is entirely possible that I’m overlooking something simple, adding that config to the MMM-QuotesFromReddit section of config.js has no effect.

            Mykle1M 1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @Spankythemusical
              last edited by

              @Spankythemusical

              My mistake entirely. I thought we were talking about the compliments module.

              in your custom.css file you could try adding this:

              .MMM-QuotesFromReddit thin.xlarge.bright {
                font-size: 21px;  /* Adjust accordingly */
              }
              

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • S Offline
                Spankythemusical
                last edited by Spankythemusical

                No problem. I was sure it was something that I was doing wrong. So in my MMM-QuotesFromReddit.js file I added:

                 },
                
                        getStyles: function () {
                                return ["MMM-QuotesFromReddit.css"];
                        },
                

                Then I created a MMM-QuotesFromReddit.css file and put in the line that you wrote. Still no change. I’m going to continue messing with it, but any additional help would be unbelievably appreciated.

                EDIT: I figured it out. I changed the line:

                wrapper.className = "thin xlarge bright";
                

                to:

                wrapper.className = "small";
                

                Works like a charm!

                bthuilotB 1 Reply Last reply Reply Quote 0
                • bthuilotB Offline
                  bthuilot @Spankythemusical
                  last edited by

                  @Spankythemusical Hey sorry for the late response, I will make it so that you can change that in the config file soon and not need to edit the js file.

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    Spankythemusical
                    last edited by

                    @bthuilot It’s no big deal. I honestly don’t know if the issue I was having was the same for anyone else. Just glad I was able to find a workaround so that I could use your module. Thank you for the work!

                    1 Reply Last reply Reply Quote 0
                    • 5 Offline
                      5M3D1N4 @bthuilot
                      last edited by

                      @bthuilot I know this is years later but is this module not available anymore?

                      1 Reply Last reply Reply Quote 0
                      • bugsounetB bugsounet referenced this topic on
                      • 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