Skip to content

Commit

Permalink
fix(dashboard): Set popover z-index to 50 to match sheet (#7081)
Browse files Browse the repository at this point in the history
Co-authored-by: Paweł <[email protected]>
  • Loading branch information
desiprisg and LetItRock authored Nov 20, 2024
1 parent d4b6bb6 commit 2d4eb45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { EditorView } from '@uiw/react-codemirror';
import { forwardRef, useMemo, useState } from 'react';
import { RiEdit2Line, RiErrorWarningFill, RiImageEditFill } from 'react-icons/ri';

Expand Down Expand Up @@ -75,13 +74,13 @@ export const AvatarPicker = forwardRef<HTMLInputElement, AvatarPickerProps>(({ n
<Separator />
<div className="space-y-1">
<Label>Avatar URL</Label>
<InputField className="px-1">
<InputField size="fit">
<Editor
fontFamily="inherit"
ref={ref}
placeholder="Enter avatar URL"
id={name}
extensions={[autocompletion({ override: [completions(variables)] }), EditorView.lineWrapping]}
extensions={[autocompletion({ override: [completions(variables)] })]}
value={`${value}`}
onChange={(newValue) => onChange?.(newValue)}
/>
Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/src/components/primitives/popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const PopoverContent = React.forwardRef<
align={align}
sideOffset={sideOffset}
className={cn(
`bg-background text-foreground-950 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-40 min-w-72 overflow-auto rounded-md border p-4 shadow-md outline-none ${arrowClipPathClassName}`,
`bg-background text-foreground-950 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-72 overflow-auto rounded-md border p-4 shadow-md outline-none ${arrowClipPathClassName}`,
className
)}
{...props}
Expand Down

0 comments on commit 2d4eb45

Please sign in to comment.