client/web: fix exit node selector styling

Remove padding on top of search bar, remove rounded corners of
bottom border of earch bar, and add auto focus.

Updates #10261

Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
pull/10491/head
Sonia Appasamy 12 months ago committed by Sonia Appasamy
parent af32d1c120
commit 2731a9da36

@ -205,10 +205,11 @@ function ExitNodeSelectorInner({
)
return (
<div className="w-[calc(var(--radix-popover-trigger-width)-16px)] py-1 rounded-lg shadow">
<div className="w-[calc(var(--radix-popover-trigger-width)-16px)] pb-1 rounded-lg shadow">
<SearchInput
name="exit-node-search"
inputClassName="w-full px-4 py-2"
inputClassName="w-full px-4 py-2 border-none rounded-b-none"
autoFocus
autoCorrect="off"
autoComplete="off"
autoCapitalize="off"
@ -231,7 +232,7 @@ function ExitNodeSelectorInner({
group.nodes.length > 0 && (
<div
key={group.id}
className="pb-1 mb-1 border-b last:border-b-0 last:mb-0"
className="pb-1 mb-1 border-b last:border-b-0 border-gray-200 last:mb-0"
>
{group.name && (
<div className="px-4 py-2 text-gray-500 text-xs font-medium uppercase tracking-wide">

Loading…
Cancel
Save