Skip to content

Commit

Permalink
fix: now search input is no longer squised on non-macOS devices (#3487)
Browse files Browse the repository at this point in the history
  • Loading branch information
msaadg authored May 28, 2024
1 parent 42fc55e commit 15d70ce
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions components/organisms/SearchDialog/search-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ const SearchDialog = () => {
<SearchInfo />
) : isSearchError && !isSearching && (repoDataError || repoData.length === 0) ? (
<Text className="block w-full py-1 px-4 text-sauced-orange !font-normal leading-6">
<HiOutlineExclamation className="text-sauced-orange inline-flex mr-2.5" fontSize={20} />
We couldn&apos;t find any users or repositories with that name
</Text>
<HiOutlineExclamation className="text-sauced-orange inline-flex mr-2.5" fontSize={20} />
We couldn&apos;t find any users or repositories with that name
</Text>
) : (
<>
<section className="flex flex-col w-full">{renderUserSearchState()}</section>
Expand Down Expand Up @@ -200,7 +200,9 @@ const SearchDialogTrigger = () => {
return (
<>
<div
className="hidden sm:flex justify-between p-1 pl-3 h-fit w-56 ml-auto bg-white border rounded-lg ring-light-slate-6 relative overflow-hidden"
className={`hidden sm:flex justify-between p-1 pl-3 h-fit ${
isMac ? "w-56" : "w-64"
} ml-auto bg-white border rounded-lg ring-light-slate-6 relative overflow-hidden`}
onClick={() => setOpenSearch(true)}
>
<div className="flex items-center">
Expand Down

0 comments on commit 15d70ce

Please sign in to comment.