From 3226e668fc21ee2c9f3655690088c04438d38569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 11 Feb 2025 21:56:26 +0100 Subject: [PATCH] theme: Make the search button more compact on mobile --- layouts/partials/layouts/search/button.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/layouts/partials/layouts/search/button.html b/layouts/partials/layouts/search/button.html index dcb37f159..8572ce304 100644 --- a/layouts/partials/layouts/search/button.html +++ b/layouts/partials/layouts/search/button.html @@ -4,16 +4,17 @@ {{ else }} type="button" x-show="!open" x-transition.opacity.duration.500ms {{ end }} - class="grid cursor-pointer w-full text-gray-500 sm:w-40 lg:w-56 grid-cols-[auto_1fr_auto] items-center gap-3 rounded-md px-4 py-2 text-left text-xs/6 lg:text-sm/6 outline-1 -outline-offset-1 outline-gray-600"> + class="grid cursor-pointer w-full text-gray-500 sm:w-40 lg:w-56 grid-cols-[auto_1fr_auto] items-center gap-3 rounded-md px-2 sm:px-4 py-2 text-left text-xs/6 lg:text-sm/6 outline-0 sm:outline-1 -outline-offset-1 outline-gray-600"> + class="pointer-events-none -ml-0.5 size-5 sm:size-4 fill-slate-400 dark:fill-slate-500"> - Search docsSearch docs