Skip to content

Commit

Permalink
Merge pull request #184 from Rash-Hit/fix-dropdown-menu-component-mod…
Browse files Browse the repository at this point in the history
…al-behaviour

fix-dropdown-menu-component-modal-behaviour
  • Loading branch information
hkirat authored Mar 26, 2024
2 parents a326fef + a9e6d45 commit 919a4b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/ThemeToggler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function ThemeToggler() {
const { setTheme } = useTheme();

return (
<DropdownMenu>
<DropdownMenu modal={false}>
<DropdownMenuTrigger asChild>
<Button variant="outline" size="iconSM">
<SunDimIcon className="h-[1rem] w-[1rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" />
Expand Down
4 changes: 2 additions & 2 deletions src/components/comment/Comments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const Comments = async ({
parentId={data?.parentComment?.id}
/>
<div className="mb-5 flex mt-5">
<DropdownMenu key="1">
<DropdownMenu key="1" modal={false}>
<DropdownMenuTrigger asChild>
<Button
className="w-[200px] justify-between text-left font-normal"
Expand Down Expand Up @@ -169,7 +169,7 @@ const Comments = async ({
</DropdownMenuGroup>
</DropdownMenuContent>
</DropdownMenu>
<DropdownMenu>
<DropdownMenu modal={false}>
<DropdownMenuTrigger asChild>
<Button
className="w-[200px] justify-between text-left font-normal"
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/dropdown-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const DropdownMenuItem = React.forwardRef<
<DropdownMenuPrimitive.Item
ref={ref}
className={cn(
'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
'relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
inset && 'pl-8',
className,
)}
Expand Down

0 comments on commit 919a4b3

Please sign in to comment.