diff --git a/assets/css/default.css b/assets/css/default.css
index d86ec7bc..20ec3222 100644
--- a/assets/css/default.css
+++ b/assets/css/default.css
@@ -321,6 +321,9 @@ input[type="search"]::-webkit-search-cancel-button {
border: 0;
background: none;
text-transform: uppercase;
+ display: grid;
+ place-items: center;
+ width: 1.5em;
}
.searchbar #searchbutton:hover {
diff --git a/src/invidious/views/components/search_box.ecr b/src/invidious/views/components/search_box.ecr
index c5488255..b679b031 100644
--- a/src/invidious/views/components/search_box.ecr
+++ b/src/invidious/views/components/search_box.ecr
@@ -6,5 +6,9 @@
title="<%= translate(locale, "search") %>"
value="<%= env.get?("search").try {|x| HTML.escape(x.as(String)) } %>">
-
+