MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    UNSOLVED Three module issues from a new user

    Troubleshooting
    6
    23
    495
    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.
    • S
      sdetweil @skyfall last edited by sdetweil

      @skyfall oh, I see you have to call out fa-brands

      hm…

      maybe if the specific string has more than 1 word

      like “fa-brands fa-iconname”

      then you use as is (full string)
      otherwise you use the default approach of appending the name to the ‘fa-’ already there

      // if there is a space in the name, 'collectionname iconname' use the string as is
      // for example "fa-brands fa-canadian-maple-leaf"
      // else use the current approach 
      symbol.className =(s.indexOf(' ')>0?s:( "fas fa-fw fa-" +s));
      

      this would let other prefix specific icons in, and not break old…

      Sam

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • S
        skyfall last edited by

        Yeah, there’s a few things to try and we can make it work without breaking default notation

        I think one thing to keep in mind is MM seems to refer to them as “fab” instead of fa-brands; not sure where that translation happens.

        I did see some of the commits from January that initially addresses this. I’m mobile right now so I don’t have the references, but it looked like this convention is used in more places than just calendar. Should be the same fix for all instances though.

        I’ll experiment with it a bit too when I sit down to look.

        1 Reply Last reply Reply Quote 0
        • L
          luisestrada @skyfall last edited by

          @skyfall I found this post exactly because of that icon, lol

          Have anyone made it work? changing fas to fal does the job for the Canadian maple leaf icon but breaks the others 😞

          1 Reply Last reply Reply Quote 0
          • 1
          • 2
          • 3
          • 3 / 3
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy