MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. iBoy1211
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    I
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Groups 0

    iBoy1211

    @iBoy1211

    0
    Reputation
    45
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    iBoy1211 Unfollow Follow

    Latest posts made by iBoy1211

    • Text stysle

      Hi i need help with text style

      How can i align it to right and max width with 50%, Because now when i make it top_right or top_left its moving all my modules to other side. I guess this is the code for text changes.

      getDom: function () {
      let wrapper = document.createElement(“div”);
      let quoteTextDiv = document.createElement(“div”);
      let quoteAuthorDiv = document.createElement(“div”);

      quoteTextDiv.className = "normal";
      quoteAuthorDiv.className = "small dimmed";
      
      
      if (this.result.quoteText && this.result.quoteAuthor){
          quoteTextDiv.innerHTML = this.result.quoteText;
          quoteAuthorDiv.innerHTML = this.result.quoteAuthor;
      }else{
          quoteTextDiv.innerHTML = "Loading";
          quoteAuthorDiv.innerHTML = "";
      }
      
      wrapper.appendChild(quoteTextDiv);
      wrapper.appendChild(quoteAuthorDiv);
      return wrapper;
      

      },

      posted in Troubleshooting
      I
      iBoy1211