fixed dropdown
This commit is contained in:
parent
2901db7035
commit
8534572662
|
@ -67,9 +67,9 @@ export default function LinkActions({
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div
|
<div
|
||||||
className={`dropdown dropdown-end dropdown-${
|
className={`dropdown dropdown-left dropdown-end absolute ${
|
||||||
flipDropdown ? "top" : "bottom"
|
position || "top-3 right-3"
|
||||||
} absolute ${position || "top-3 right-3"} z-20`}
|
} z-20`}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
|
@ -79,7 +79,7 @@ export default function LinkActions({
|
||||||
>
|
>
|
||||||
<i title="More" className="bi-three-dots text-xl" />
|
<i title="More" className="bi-three-dots text-xl" />
|
||||||
</div>
|
</div>
|
||||||
<ul className="dropdown-content z-[20] menu shadow bg-base-200 border border-neutral-content rounded-box w-44 mr-1">
|
<ul className="dropdown-content z-[20] menu shadow bg-base-200 border border-neutral-content rounded-box w-44 mr-1 translate-y-10">
|
||||||
{permissions === true ? (
|
{permissions === true ? (
|
||||||
<li>
|
<li>
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -4,6 +4,7 @@ import { TokenExpiry } from "@/types/global";
|
||||||
import toast from "react-hot-toast";
|
import toast from "react-hot-toast";
|
||||||
import Modal from "../Modal";
|
import Modal from "../Modal";
|
||||||
import useTokenStore from "@/store/tokens";
|
import useTokenStore from "@/store/tokens";
|
||||||
|
import { dropdownTriggerer } from "@/lib/client/utils";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
onClose: Function;
|
onClose: Function;
|
||||||
|
@ -92,6 +93,7 @@ export default function NewTokenModal({ onClose }: Props) {
|
||||||
<div
|
<div
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
role="button"
|
role="button"
|
||||||
|
onMouseDown={dropdownTriggerer}
|
||||||
className="btn btn-outline w-36 flex items-center btn-sm h-10"
|
className="btn btn-outline w-36 flex items-center btn-sm h-10"
|
||||||
>
|
>
|
||||||
{token.expires === TokenExpiry.sevenDays && "7 Days"}
|
{token.expires === TokenExpiry.sevenDays && "7 Days"}
|
||||||
|
|
Ŝarĝante…
Reference in New Issue