Repository: supabase/supabase
File: apps/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx (TypeScript)

Code before:
        </AnimatePresence>
      </>

      <PopoverSeparator_Shadcn_ />

      <div className="px-5 flex flex-row justify-end items-start mt-4">
        <div className="flex items-center gap-2 flex-row">
          {!!screenshot ? (
            <div
              style={{ backgroundImage: `url("${screenshot}")` }}
              onClick={() => {
                const blob = convertB64toBlob(screenshot)
                const blobUrl = URL.createObjectURL(blob)
                window.open(blobUrl, '_blank')
              }}
              className="cursor-pointer rounded h-[26px] w-[26px] border border-control relative bg-cover bg-center bg-no-repeat"
            >
              <button
                className={[
                  'cursor-pointer rounded-full bg-red-900 h-3 w-3',
                  'flex items-center justify-center absolute -top-1 -right-1',
                ].join(' ')}
                onClick={(event) => {
                  event.stopPropagation()
                  setScreenshot(null)
                }}
              >
                <X size={8} strokeWidth={3} />
              </button>
            </div>
          ) : (
            <DropdownMenu>
              <DropdownMenuTrigger asChild>
                <Button
                  type="default"
                  disabled={isSavingScreenshot}
                  loading={isSavingScreenshot}
                  className="w-7"
                  icon={<ImageIcon size={14} />}
                />
              </DropdownMenuTrigger>
              <DropdownMenuContent side="bottom" align="end" className="w-fit">
                <DropdownMenuItem
                  className="flex gap-2"
                  key="upload-screenshot"
                  onSelect={() => {
                    if (uploadButtonRef.current) (uploadButtonRef.current as any).click()
                  }}
                >
                  <Upload size={14} />
                  Upload screenshot

Review comment (suggestion):
It’s disorientating to have one dropdown open another, hence the reference to another menu via `HelpCircle`.

Code after:
              sendEvent({
                action: 'send_feedback_button_clicked',
                groups: { project: ref, organization: org?.slug },
              })
            }}
          >
            Send
          </Button>
        </div>
      </div>
    </>
  )
}

const ThanksMessage = ({ onClose }: { onClose: () => void }) => {
  return (
    <div className="px-0 pt-3 pb-0">
      <div className="grid gap-3">
        <div className="px-6 grid gap-4 py-3 text-center text-foreground-light">
          <CircleCheck className="mx-auto text-brand-500" size={24} />
          <div className="text-center flex flex-col">
            <p className="text-foreground text-base">Your feedback has been sent. Thanks!</p>
            <p className="text-sm text-balance">
              We don’t always respond to feedback. If you require assistance, please contact support
              via the <HelpCircle className="inline-block" size={12} aria-label="Help" /> menu
              instead.
            </p>
          </div>
        </div>
        <PopoverSeparator_Shadcn_ />
        <div className="flex items-center justify-end px-4">
          <Button type="default" onClick={onClose}>
            Close
          </Button>
        </div>
      </div>
    </div>
  )
}