Skip to content

Commit

Permalink
fix: fixed dropdown styling (open-sauced#4077)
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Taylor <[email protected]>
  • Loading branch information
ryandotfurrer and nickytonline authored Sep 4, 2024
1 parent 9067dca commit 4fa8b7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/Repositories/AddToWorkspaceModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default function AddToWorkspaceModal({ repository, isOpen, onCloseModal,
onInteractOutside={onCloseModal}
>
<Card heading={<h1 className="text-xl font-semibold">Add to workspace</h1>}>
<div className="flex flex-col gap-4 w-[32rem] h-full px-8 py-4">
<div className="flex flex-col gap-4 w-fit h-full px-8 py-4">
{!user ? (
<div className="flex flex-col gap-4 text-center">
<img
Expand Down
4 changes: 2 additions & 2 deletions components/atoms/Select/single-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const SingleSelect = ({
<DropdownMenuTrigger
data-inset-label={insetLabel}
className={clsx(
"flex text-sm px-3 py-1.5 !border !border-slate-200 rounded-md bg-white data-[state=open]:border-orange-500 min-w-max",
"flex w-full justify-between md:w-fit text-sm px-3 py-1.5 !border !border-slate-200 rounded-md bg-white data-[state=open]:border-orange-500 min-w-max",
insetLabel && `before:content-[attr(data-inset-label)] before:mr-1 before:font-normal before:text-slate-500`
)}
>
Expand All @@ -75,7 +75,7 @@ const SingleSelect = ({
</div>
</DropdownMenuTrigger>

<DropdownMenuContent className="!p-0 z-50 relative bg-white !w-full my-1 border shadow-lg rounded-lg">
<DropdownMenuContent className="!p-0 z-50 relative bg-white w-[90vw] md:w-auto my-1 border shadow-lg rounded-lg">
<>
{options.length > 0 && (
<Command loop className="w-full px-0 pt-1 bg-transparent">
Expand Down

0 comments on commit 4fa8b7f

Please sign in to comment.