Skip to content

Commit

Permalink
⚒️ Fix UI components.
Browse files Browse the repository at this point in the history
  • Loading branch information
pheralb committed Nov 21, 2022
1 parent 9d5e09c commit 5371135
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/ui/dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const Dropdown = (props: DropdownProps) => {
leaveFrom="transform opacity-100 scale-100"
leaveTo="transform opacity-0 scale-95"
>
<Menu.Items className="absolute p-1 right-2 mt-2 w-56 origin-top-right divide-y divide-gray-100 rounded-md bg-midnight border border-zinc-800 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none">
<Menu.Items className="absolute p-1 right-2 mt-2 w-56 origin-top-right divide-y z-40 divide-gray-100 rounded-md bg-midnight border border-zinc-800 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none">
<div className="py-1">{props.children}</div>
</Menu.Items>
</Transition>
Expand Down
16 changes: 9 additions & 7 deletions src/ui/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Dialog, Transition } from "@headlessui/react";
import { Fragment } from "react";

interface ModalProps {
title: string;
title?: string;
children: React.ReactNode;
className?: string;
open: boolean;
Expand Down Expand Up @@ -37,12 +37,14 @@ const Modal = (props: ModalProps) => {
leaveTo="opacity-0 scale-95"
>
<Dialog.Panel className="w-full max-w-md transform overflow-hidden rounded-2xl bg-midnight text-white p-6 text-left align-middle shadow-xl transition-all">
<Dialog.Title
as="h3"
className="text-lg font-medium leading-6 mb-4"
>
{props.title}
</Dialog.Title>
{props.title && (
<Dialog.Title
as="h3"
className="text-lg font-medium leading-6 mb-4 text-gray-400"
>
{props.title}
</Dialog.Title>
)}
{props.children}
</Dialog.Panel>
</Transition.Child>
Expand Down

1 comment on commit 5371135

@vercel
Copy link

@vercel vercel bot commented on 5371135 Nov 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

slug – ./

slug-git-main-pheralb.vercel.app
slug-pheralb.vercel.app
slug.vercel.app

Please sign in to comment.