Wow! Running Gossip on a phone!

It doesn't yet fit the screen. However, performance looks great. It's on the PinePhone with postmarketOS and Phosh. I installed the Rust toolchain and compiled nostr:npub189j8y280mhezlp98ecmdzydn0r8970g4hpqpx3u9tcztynywfczqqr3tg8 from the console on the phone. I needed to add some compile flags as Alpine Linux (postmarketOS) wants to dynamically link to musl.

Adding a responsive layout and handling touch events for pasting and selecting text would be all that would be needed.

#pinephone #nostr #gossip

Reply to this note

Please Login to reply.

Discussion

That's awesome!

I'm sorry we designed the UI for a desktop. There was no thought put into supporting small screens or touch devices. Nor did we optimize for low battery usage. But I'm always eager to look at pull requests!

Sounds great, thanks!

I haven't found much documentation on responsive layouts with egui. So I'm unfamiliar with what would be required to support it. Could be a great project.

I've been able to scale the system display from 200% to 100% and it displays much better. I've needed to do this also for a few other applications that are working towards having a responsive layout — progress is being made.

I hope you didn't do it the hard way.. there is a setting to override the DPI that uniformly scales everything, fonts included.

I didn't see that setting in User Interface of Gossip – neat. It looks like it'll make things larger but not smaller, unless it could go lower than 72.

I used a system setting from Settings -> Displays -> Scale. There is also another system option Mobile Settings -> Compositor to enable scaling per application. However, it didn't have an effect in this case.

egui is immediate, so every frame you can choose what to do. You can say "if width < x do this, else do that".

I think the side menu would have to become a dropdown at certain widths, and some of the pages need to have their content wrap instead of scrolling left-right.

Okay, great!

nice🔥