Skip to content

Truly independent web browser

Base: Center the error page like other single-message pages

Andreas Kling334b78f12f4a
diff --git a/Base/res/ladybird/templates/error.html b/Base/res/ladybird/templates/error.html
index d82f13dd8b8..ee526ecb332 100644
--- a/Base/res/ladybird/templates/error.html
+++ b/Base/res/ladybird/templates/error.html
@@ -39,16 +39,15 @@
color: var(--text);
background: var(--page);
}
+ /* Centered, like every other page with a single message. */
main {
display: flex;
flex-direction: column;
+ align-items: center;
gap: 14px;
- /* The content lines up with the left edge of a centered column. */
- max-width: 800px;
- margin: 0 auto;
- }
- main > * {
max-width: 560px;
+ margin: 0 auto;
+ text-align: center;
}
svg {
width: 40px;
@@ -68,6 +67,8 @@
}
.actions {
display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
gap: 8px;
margin-top: 10px;
}
@@ -105,6 +106,10 @@
summary:hover {
background: var(--control-hover);
}
+ details::details-content {
+ order: 1;
+ flex-basis: 100\%;
+ }
.details {
margin-top: 4px;
font-size: 12px;