Reset button and log look weird on mobile

AI-generated summary

Users reported that the Discourse admin upgrade page displayed poorly on mobile, with the “Reset Upgrade” button wrapping oddly and the log area occupying only half the screen width uwe_keim. The issue was confirmed as a regression codinghorror and assigned to Osama, who refactored the UI to better support narrow screens (down to 320px) and provided visual examples for mobile and desktop Osama. After the fix was merged sam, uwe_keim initially saw no change, suspecting a delay in deployment. Following another update, uwe_keim confirmed the layout now appears correctly on mobile, resolving the issue. The fix was implemented via a PR to the docker_manager repository Osama.

Since some days, the upgrade Discourse admin upgrade page looks somewhat strange:

  • The “Reset Upgrade” button is wrapped in the next line.
  • The log area is only half the width of the available space.

My sceenshot is form a German iOS 11.3 on iPhone SE.

Maybe this can be improved?

Interesting, @Osama can you add to your list. (feel free to spin up a digital ocean instance to test this)

I think it is very legit to have a good “upgrade” UI on mobile.

This is a regression, so it needs to be fixed

This looks like very related to screen size!

Ok, so I refactored a few things here and there and this is what I ended up with:

It should now be able to handle devices with extremely narrow screens (down to 320 pixels wide):

And on desktop:

Does this look good? anything out of place?

Looks good to me :panda_face:

PR sent :rocket:

https://github.com/discourse/docker_manager/pull/40

Merged in, @uwe_keim let us know what you think

After reading this, I did one update and another one after that.

Still, it looks exactly the same as in my initial post.

Probably I have to wait some time until it is actually available in the official “branch”?

Where do you see the “Return to site” link? Is it one of the navigation tabs or above the discourse logo?

It is above the Discourse logo.

I’ll wait one more update, maybe it will then be fiex.

Looks good now: