Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit f7b129b

Browse files
committed
fix: increased dialog box width when non-mac
used ternary operator to switch width, didnot use w-72 as the header logo gets very small when approaching sm breakpoint fix #3481
1 parent 42fc55e commit f7b129b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

components/organisms/SearchDialog/search-dialog.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ const SearchDialog = () => {
166166
<SearchInfo />
167167
) : isSearchError && !isSearching && (repoDataError || repoData.length === 0) ? (
168168
<Text className="block w-full py-1 px-4 text-sauced-orange !font-normal leading-6">
169-
<HiOutlineExclamation className="text-sauced-orange inline-flex mr-2.5" fontSize={20} />
170-
We couldn&apos;t find any users or repositories with that name
171-
</Text>
169+
<HiOutlineExclamation className="text-sauced-orange inline-flex mr-2.5" fontSize={20} />
170+
We couldn&apos;t find any users or repositories with that name
171+
</Text>
172172
) : (
173173
<>
174174
<section className="flex flex-col w-full">{renderUserSearchState()}</section>
@@ -200,7 +200,9 @@ const SearchDialogTrigger = () => {
200200
return (
201201
<>
202202
<div
203-
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"
203+
className={`hidden sm:flex justify-between p-1 pl-3 h-fit ${
204+
isMac ? "w-56" : "w-64"
205+
} ml-auto bg-white border rounded-lg ring-light-slate-6 relative overflow-hidden`}
204206
onClick={() => setOpenSearch(true)}
205207
>
206208
<div className="flex items-center">

0 commit comments

Comments
 (0)