LibWebView+Base: Remove unnecessary scrollbar from error pages

I've been looking at the crash-page too much recently and the slight
scrollbar caused by the padding has been annoying me.
This commit is contained in:
InvalidUsernameException 2025-09-06 17:33:56 +02:00 committed by Tim Ledbetter
commit 08162fb9af
Notes: github-actions[bot] 2025-09-08 11:04:06 +00:00
2 changed files with 2 additions and 1 deletions

View file

@ -14,6 +14,7 @@
align-items: center;
justify-content: center;
min-height: 100vh;
box-sizing: border-box;
margin: 0;
padding: 1rem;
text-align: center;

View file

@ -634,7 +634,7 @@ void ViewImplementation::handle_web_content_process_crash(LoadErrorPage load_err
builder.append("<!DOCTYPE html>"sv);
builder.append("<html lang=\"en\"><head><meta charset=\"UTF-8\"><title>Error!</title><style>"
":root { color-scheme: light dark; font-family: system-ui, sans-serif; }"
"body { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; margin: 0; padding: 1rem; text-align: center; }"
"body { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; box-sizing: border-box; margin: 0; padding: 1rem; text-align: center; }"
"header { display: flex; flex-direction: column; align-items: center; gap: 2rem; margin-bottom: 1rem; }"
"svg { height: 64px; width: auto; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }"
"h1 { margin: 0; font-size: 1.5rem; }"