Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fixed dropdown styling #4077

Merged
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
Loading