hzrd149 / nostrudel

A sandbox for exploring nostr
https://nostrudel.ninja/
MIT License
146 stars 46 forks source link

UI just flips on a certain profile #249

Open 0xtrr opened 3 weeks ago

0xtrr commented 3 weeks ago

So I was just browsing noStrudel and clicked in on a profile when the UI suddenly just flipped. This only happens for this specific profile for me.

User npub: npub107jk7htfv243u0x5ynn43scq9wrxtaasmrwwa8lfu2ydwag6cx2quqncxg

gfeyuwgfewufuew

hzrd149 commented 1 week ago

This seems like a "bug" caused by the browser itself. I seems like when the page has dir="auto" the browser will switch between ltr and rtl depending on the text

https://github.com/hzrd149/nostrudel/blob/master/index.html#L2 https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir

I think the fix for this would be to set dir="ltr"