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
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ NEXT_PUBLIC_SENTRY_DSN=https://3f5bb9023ff0407299dd22a6454558f9@o450487248892723
# --------------
# For running the API local, use your devices localhost address:
#
# NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/v2
# NEXT_PUBLIC_EXP_API_URL=http://127.0.0.1:3001/v2
# NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/v2
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 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",
ryandotfurrer marked this conversation as resolved.
Show resolved Hide resolved
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