Skip to content

Commit

Permalink
Improve resolver selection on small screens 👆
Browse files Browse the repository at this point in the history
  • Loading branch information
wotschofsky committed Dec 23, 2024
1 parent 209c8a4 commit f9205c5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const LocationSelector: FC<LocationSelectorProps> = ({
onValueChange={onValueChange}
disabled={disabled}
>
<SelectTrigger className="w-[180px]">
<SelectTrigger>
<SelectValue placeholder="Location" />
</SelectTrigger>
<SelectContent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const ResolverSelector: FC<ResolverSelectorProps> = ({
defaultValue={initialValue || 'authoritative'}
onValueChange={onValueChange}
>
<SelectTrigger className="w-[180px]">
<SelectTrigger>
<SelectValue placeholder="Resolver" />
</SelectTrigger>
<SelectContent>
Expand Down
16 changes: 10 additions & 6 deletions app/lookup/[domain]/(dns)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,16 @@ const LookupDomain: FC<LookupDomainProps> = async ({

return (
<>
<div className="flex flex-col gap-8 sm:flex-row">
<ResolverSelector initialValue={resolverName} />
<LocationSelector
initialValue={locationName}
disabled={!resolverName}
/>
<div className="flex flex-col gap-4 min-[450px]:flex-row">
<div className="w-full flex-1 min-[450px]:max-w-52">
<ResolverSelector initialValue={resolverName} />
</div>
<div className="w-full flex-1 min-[450px]:max-w-52">
<LocationSelector
initialValue={locationName}
disabled={!resolverName}
/>
</div>
</div>

{hasResults ? (
Expand Down

0 comments on commit f9205c5

Please sign in to comment.