Truly independent web browser
Base: Show search engines by name only on the welcome page
Andreas Klingef4d43e11e72
diff --git a/Base/res/ladybird/about-pages/welcome.css b/Base/res/ladybird/about-pages/welcome.cssindex f2fad0cc454..6c3484a067e 100644--- a/Base/res/ladybird/about-pages/welcome.css+++ b/Base/res/ladybird/about-pages/welcome.css@@ -77,21 +77,27 @@ section {.search-engines {display: grid;- grid-template-columns: repeat(3, minmax(0, 1fr));+ grid-template-columns: repeat(5, minmax(0, 1fr));gap: 8px;}.search-engine {display: flex;align-items: center;- gap: 10px;+ justify-content: center;height: 40px;- padding: 0 12px;+ padding: 0 8px;border-radius: 10px;box-shadow: inset 0 0 0 1px var(--separator);cursor: pointer;}+.search-engine span {+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.search-engine input {position: absolute;opacity: 0;@@ -147,6 +153,6 @@ footer .primary-button {@media (max-width: 520px) {.search-engines {- grid-template-columns: repeat(2, minmax(0, 1fr));+ grid-template-columns: repeat(3, minmax(0, 1fr));}}diff --git a/Base/res/ladybird/about-pages/welcome.js b/Base/res/ladybird/about-pages/welcome.jsindex 4c319e506ab..326b63f9886 100644--- a/Base/res/ladybird/about-pages/welcome.js+++ b/Base/res/ladybird/about-pages/welcome.js@@ -81,15 +81,12 @@ function renderSearchEngines() {setSearchEngine(null);});- const letter = document.createElement("span");- letter.className = "letter-tile";- letter.setAttribute("aria-hidden", "true");- letter.textContent = name.charAt(0).toUpperCase();-+ // NB: Engines are shown by name only. Logos would mean shipping other companies' trademarks, or contacting+ // their servers before anyone has chosen.const label = document.createElement("span");label.textContent = name;- tile.append(radio, letter, label);+ tile.append(radio, label);searchEngines.append(tile);}}