-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify 404/500 page #31409
Simplify 404/500 page #31409
Conversation
3c8533f
to
9f12d5e
Compare
Maybe put on two lines?
|
No idea which looks really better. Fee free to edit it. Personally I don't think it's worth to make it that complex, most users do not use these pages daily. |
Hold on with merge, I will try to vertically center on screen. |
Let's wait for @wxiaoguang to have a final look. |
I really dislike using too many CSS tricks for such a trivial page. |
2061968
to
83f30c1
Compare
As I said, the complex CSS is because the page layout is bad and could still drastically simplified.
Would have been a trivial fix. I will iterate on it and vertically center it. I think it's important to have well-designed pages and especially on big screen it looks bad with the fixed margin currently. |
Hacking tricks don't really work well. There are different cases:
I believe in: correctness > good maintainability > feature/enhancement > base maintainability > unclear patching for blockers > tricky fine-tunes. For most UI alignment problems, we have fixed them with "base maintainability". But for this one, it only seems to be "tricky fine-tunes" at the moment. |
If you would really to fine tune, try this: cb1462d |
Anything else to change? If no, leave more fune-tunes to the future. At least, this change is already better than before and doesn't introduce new problems (the UI didn't align in old code either) |
* giteaofficial/main: Disable issue/PR comment button given empty input (go-gitea#31463) Simplify 404/500 page (go-gitea#31409) Fix web notification icon not updated once you read all notifications (go-gitea#31447) Switch to "Write" tab when edit comment again (go-gitea#31445) Add simple JS init performance trace (go-gitea#31459)
The centering looks slightly off, maybe I will tune later. |
It doesn't need to waste user's bandwidth to download a 404.png/500.png when error occurs.
ps: I think we do not need to translate "Not Found" and "Internal Server Error", they are widely used internet terms IMO, and they are clearer than the previous images (which only show a number)