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

organization of the text next to the icon.

Scheduled Pinned Locked Moved Custom CSS
48 Posts 3 Posters 15.6k Views 5 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.
  • S Offline
    sdetweil @iorifly
    last edited by sdetweil Jan 18, 2020, 6:59 PM Jan 18, 2020, 6:59 PM

    @iorifly i don’t think u can change this with CSS… i would have to see how the author formatted the data… suspect he used a table structure, if so you would have to change the code

    also, it is always nice if u tell us the module that is generating the content

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 1
    • I Offline
      iorifly
      last edited by Jan 18, 2020, 7:00 PM

      boy, you became my tutor on this site !! I just have to thank!

      this is the module.

      https://github.com/leinich/MMM-homeassistant-sensors

      1 Reply Last reply Reply Quote 0
      • I Offline
        iorifly
        last edited by Jan 18, 2020, 7:03 PM

        As I said. If I position the module on the left side. Everything is perfectly aligned.

        If I place the module on the right side, the text is far from the icons.

        Taking advantage of that will look at the code. It is possible, for example, when he displays “off” or “on” he writes in my language …
        I don’t think so, as it pulls that information from the Home Assistant server.

        S 1 Reply Last reply Jan 18, 2020, 7:10 PM Reply Quote 0
        • I Offline
          iorifly
          last edited by Jan 18, 2020, 7:08 PM

          I did not find any css files in this addom.

          It would be possible to add lines to separate some functions, or I’m saying stupidity.

          1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @iorifly
            last edited by Jan 18, 2020, 7:10 PM

            @iorifly

            yes, he creates an html table (table)
            and each row is a table row (tr)
            you would have to move this

            		// Name
            		newCell = newrow.insertCell(1);
            		newText = document.createTextNode(name);
            		newCell.appendChild(newText);
            		// Value
            		newCell = newrow.insertCell(2);
            		newCell.className = "align-right"
            			newText = document.createTextNode(value);
            		newCell.appendChild(newText);
            		// Unit
            		newCell = newrow.insertCell(3);
            		newCell.className = "align-left"
            			newText = document.createTextNode(unit);
            		newCell.appendChild(newText);
            

            in front of this

            		// icons
            		newCell = newrow.insertCell(0);
            

            and change the insertCell(?) numbers back to 0-3 in order again
            change 1 to 0,
            2 to 1,
            3 to 2
            and 0 to 3

            as for left/right areas of screen… yes, it is quite a challenge to have the text properly aligned, regardless of the area of the screen (position) selected… there is NO ‘simple’ fix

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • I Offline
              iorifly
              last edited by Jan 18, 2020, 7:12 PM

              I will try to play with this. But already mine gave a north !!!

              I will try to create the lines. About aligning if standing next to the icons already helps. Now creating html is simpler. I will try to understand. Anything I report.

              1 Reply Last reply Reply Quote 0
              • D Offline
                doubleT Module Developer
                last edited by Jan 18, 2020, 7:14 PM

                Wait! I think that’s not what @iorifly wants, right?

                If I understand this correct (and it is difficult to understand ;) ) the text in the middle should be aligned left?

                If I place the module on the right side, the text is far from the icons.

                S 1 Reply Last reply Jan 18, 2020, 7:17 PM Reply Quote 0
                • I Offline
                  iorifly
                  last edited by Jan 18, 2020, 7:15 PM

                  I will send another photo. with the module positioned to the left of the screen.

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @doubleT
                    last edited by Jan 18, 2020, 7:17 PM

                    @doubleT yes, you are correct… sorry, I misunderstood , I thought he wanted the icons on the right end of the line

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • I Offline
                      iorifly
                      last edited by Jan 18, 2020, 7:20 PM

                      I actually want it that way. See how the text is perfectly aligned to the icon.

                      https://imgur.com/InsQd3x

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 1 / 5
                      1 / 5
                      • First post
                        6/48
                        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