• 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-PublicTransportHafas from KristjanESPERANTO

Scheduled Pinned Locked Moved Unsolved Troubleshooting
7 Posts 3 Posters 1.7k Views 3 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.
  • O Offline
    onkelbobby @thgmirror
    last edited by May 21, 2023, 9:09 AM

    @thgmirror

    Thank you for this hint… I’ll try it once I’m back from my business trip.

    1 Reply Last reply Reply Quote 0
    • K Offline
      KristjanESPERANTO Module Developer @onkelbobby
      last edited by May 21, 2023, 9:35 AM

      Hi @onkelbobby,

      nice that you use my fork :slightly_smiling_face:

      The reason why the columns have different widths is that you enabled the platform in the first module and not in the others. The simplest option would be to display the column for the second and third module as well. But maybe that doesn’t make sense with this two stops, then you could try the approach of setting the width in your custom.css like this:

      table.mmm-pth-table {
      width: fit-content;
      }
      
      .mmm-pth-time-cell {
      width: 10ch;
      }
      
      .mmm-pth-sign {
      width: 6ch;
      }
      
      1 Reply Last reply Reply Quote 0
      • O Offline
        onkelbobby
        last edited by onkelbobby May 30, 2023, 8:11 PM May 30, 2023, 7:40 PM

        thank you @KristjanESPERANTO for your reply and sorry for my late response due to my business trip.

        I just implemented your recommendation into styles.css and it worked great. The only thing that’s now different is how to arrange the track number that it is aligned to the right?

        module alignment 2.png

        Maybe you also have an idea how to solve why all of a sudden several delay times are displayed as “?”

        thank you for your great help

        K 1 Reply Last reply Jun 5, 2023, 9:56 PM Reply Quote 0
        • K Offline
          KristjanESPERANTO Module Developer @onkelbobby
          last edited by Jun 5, 2023, 9:56 PM

          @onkelbobby

          Try it with that addition to your CSS file:

          .mmm-pth-platform-cell  {
          width: 3ch;
          }
          

          I’ve never noticed the question mark before. I assume that this is displayed when no real time data is available. I just tried it with Adunistraße and didn’t see a question mark. The problem was probably only temporary on the API side.

          O 1 Reply Last reply Jun 6, 2023, 7:52 PM Reply Quote 0
          • O Offline
            onkelbobby @KristjanESPERANTO
            last edited by Jun 6, 2023, 7:52 PM

            @KristjanESPERANTO
            thanks again but unfortunately this did not help. It increases the space between the platform number and the right edge but does not move the platform number to the right. Even if I add

            .mmm-pth-platform-cell {
              width: 3ch;
              text-align: right;
            }
            

            it will stay same.

            the question marks indeed traced back to the API. they disappeared the next day.

            1 Reply Last reply Reply Quote 0
            • 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