yyrkoon94 / lovelace-idf-mobilite

Lovelace Card for IDF Mobilité (Bus, Métro, RER)
19 stars 7 forks source link

In RER line type the text doesn't fit if it's too long #10

Open wgrs33 opened 6 months ago

wgrs33 commented 6 months ago

Hi! Thank you for developing this card. It's really useful!

Now the issue I see. I have a card with RER/SNCF LineType. When the destination name is too long then string is split into 2 lines. Unfortunately the lines exit their area.

Data to reproduce: MonitoringRef: SP:63989 LineRef: C01740 or MonitoringRef: SP:63886 LineRef:C01727

This happens on OnePlus8T Screenshot_2023-12-09-16-53-56-40_c3a231c25ed346e59462e84656a70e50

This one on an old Samsung tablet (Android 5). As you can see, even Bus lineType has the same issue 17021382876326766437236105265229

On the PC I don't see it, so I suppose that it is linked to display's resolution and pixel density.

yyrkoon94 commented 6 months ago

Hello,

Yes the issue depends on the size. I made a fix in the next release.