Xyphyn / photon

A replacement for lemmy-ui with more features, a better design, and more customizability.
https://phtn.app
GNU Affero General Public License v3.0
367 stars 40 forks source link

UI doesn't fit on narrow screens. #342

Closed sevonj closed 2 months ago

sevonj commented 3 months ago

Describe the bug My phone reports its screen width as 360 px. Photon does not like screens this narrow.

To Reproduce (if applicable) Steps to reproduce the behavior:

Expected behavior -

Screenshots image

Versions

Xyphyn commented 3 months ago

View select box is supposed to not be visible on mobile, and the posts seem to be displaying correctly.

I'll fix the navbar though.

sevonj commented 3 months ago

View select box is supposed to not be visible on mobile

Oh.

Should've been more specic for the posts. Meta wraps around like this. I didn't catch it while browsing for examples now, but it looks real janky when it wraps more than the screenshots, in multiple places at the same time.

20240624_224718.jpg

20240624_224744.jpg

(And this place again) 20240624_224803.jpg

A small thing, embed thumbnails can get even thinner than this.

20240624_224824.jpg

Xyphyn commented 3 months ago

I'm not sure how I'd wrap this. Maybe I could just hide the instance url at small enough sizes.

sevonj commented 3 months ago

Overflow ellipsis for both user and community?

sevonj commented 3 months ago

I enabled some badges. image

Xyphyn commented 3 months ago

Uh oh. I'll get on this soon

sevonj commented 3 months ago

So, I think this can be fixed with two changes that are probably annoying to build.

Xyphyn commented 3 months ago

CSS flexbox's default overflow rules are stupid as fuck, why do the most random things shrink except the ones i explicitly tell to shrink???? mix that with css grid and my layout is a living hell now

sevonj commented 3 months ago

CSS flexbox's default overflow rules are stupid as fuck, why do the most random things shrink except the ones i explicitly tell to shrink???? mix that with css grid and my layout is a living hell now

I know, right

I see the dock overflow is fixed. Is the menu button supposed to shrink? image

Meta is janky but at least it doesn't overflow. image image image

I'll check these two boxes.

Edit: for embed thumbnails, how about a vertical layout?

Xyphyn commented 2 months ago

All tasks completed, reopen this issue if there's anything more needed to be done.

sevonj commented 2 months ago

All tasks completed, reopen this issue if there's anything more needed to be done.

Well it happened rather soon.

image image