Skip to content

Truly independent web browser

Base: Make the other about: pages' controls react like settings

Andreas Klinge7d14e8e05e5
diff --git a/Base/res/ladybird/about-pages/bookmarks.html b/Base/res/ladybird/about-pages/bookmarks.html
index 8eaf5fde0a4..7481f899cd6 100644
--- a/Base/res/ladybird/about-pages/bookmarks.html
+++ b/Base/res/ladybird/about-pages/bookmarks.html
@@ -42,15 +42,16 @@
border-radius: 6px;
color: var(--text);
text-decoration: none;
- cursor: default;
+ cursor: pointer;
}
+ /* The current folder's fill is deeper than the faint hover fill, so a hovered folder never looks current. */
.folder-link:hover {
- background-color: var(--control);
+ background-color: var(--hover-faint);
}
.folder-link[aria-current="page"] {
- background-color: var(--control);
+ background-color: var(--control-pressed);
}
.folder-link.drop-inside {
@@ -204,6 +205,14 @@
text-decoration: none;
}
+ /* The title's link stretches over the whole row, as the whole row lights up under the pointer. */
+ .title::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ border-radius: 6px;
+ }
+
.detail {
flex: 1;
min-width: 0;
@@ -228,6 +237,7 @@
background-color: var(--control);
visibility: hidden;
position: relative;
+ z-index: 1;
}
/* The button takes clicks from a 32 px square around it. */
@@ -510,7 +520,7 @@
if (item.type === "folder") {
row.append(createElement("span", { className: "favicon", innerHTML: FOLDER_SVG }));
- const title = createElement("a", { href: "#", className: "title" });
+ const title = createElement("a", { href: "#", className: "title", draggable: false });
title.append(...highlightText(item.title || "(no title)", SEARCH_QUERY));
title.addEventListener("click", event => {
event.preventDefault();
@@ -531,7 +541,7 @@
if (item.favicon)
favicon.append(createElement("img", { src: `data:image/png;base64,${item.favicon}`, alt: "" }));
else favicon.innerHTML = GLOBE_SVG;
- const title = createElement("a", { href: item.url, className: "title" });
+ const title = createElement("a", { href: item.url, className: "title", draggable: false });
title.append(...highlightText(item.title || item.url, SEARCH_QUERY));
const detail = createElement("span", { className: "detail" });
detail.append(...highlightText(displayUrl(item.url), SEARCH_QUERY));
diff --git a/Base/res/ladybird/about-pages/crashes.html b/Base/res/ladybird/about-pages/crashes.html
index 1bde3afe579..ba120b9b25f 100644
--- a/Base/res/ladybird/about-pages/crashes.html
+++ b/Base/res/ladybird/about-pages/crashes.html
@@ -101,6 +101,10 @@
cursor: pointer;
}
+ .report-toggle:hover {
+ background-color: var(--control);
+ }
+
.report-chevron {
flex: none;
width: 12px;
@@ -241,6 +245,7 @@
display: flex;
align-items: flex-start;
gap: 8px;
+ cursor: pointer;
}
.report-website input {
@@ -267,9 +272,11 @@
}
.report-show {
- padding: 0;
+ margin: -1px -4px;
+ padding: 1px 4px;
border: none;
+ border-radius: 4px;
background: none;
color: var(--link);
@@ -278,6 +285,10 @@
cursor: pointer;
}
+ .report-show:hover {
+ background-color: var(--control);
+ }
+
.report-text-note {
margin: 0;
color: var(--muted);
diff --git a/Base/res/ladybird/about-pages/history.html b/Base/res/ladybird/about-pages/history.html
index 053bd0173c4..15b013c20b5 100644
--- a/Base/res/ladybird/about-pages/history.html
+++ b/Base/res/ladybird/about-pages/history.html
@@ -84,6 +84,7 @@
}
.history-entry {
+ position: relative;
display: flex;
align-items: center;
gap: 14px;
@@ -140,6 +141,14 @@
text-decoration: none;
}
+ /* The title's link stretches over the whole entry, as the whole entry lights up under the pointer. */
+ .entry-title::after {
+ content: "";
+ position: absolute;
+ inset: 0;
+ border-radius: 6px;
+ }
+
.entry-domain {
flex-shrink: 0;
max-width: 30%;
@@ -155,6 +164,12 @@
align-items: center;
flex-shrink: 0;
position: relative;
+ z-index: 1;
+ }
+
+ /* The open menu stays above the entries after its own. */
+ .entry-actions:has(.menu-toggle[aria-expanded="true"]) {
+ z-index: 2;
}
.menu-toggle {
diff --git a/Base/res/ladybird/about-pages/support.html b/Base/res/ladybird/about-pages/support.html
index 1329d561999..164bde8a475 100644
--- a/Base/res/ladybird/about-pages/support.html
+++ b/Base/res/ladybird/about-pages/support.html
@@ -80,6 +80,7 @@
.toggle {
border: none;
+ border-radius: 4px;
background: none;
color: var(--secondary-text-color);
font-size: 12px;
@@ -135,11 +136,24 @@
font-size: 12px;
}
+ .toggle:hover {
+ background-color: var(--control);
+ }
+
summary {
+ width: fit-content;
+ margin-left: -6px;
+ padding: 2px 6px;
+ border-radius: 5px;
+
cursor: pointer;
font-size: 13px;
}
+ summary:hover {
+ background-color: var(--control);
+ }
+
@media (max-width: 640px) {
:root {
--indent: 10px;