Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

fixed dropdown

daniel31x138534572662dc
diff --git a/components/LinkViews/LinkComponents/LinkActions.tsx b/components/LinkViews/LinkComponents/LinkActions.tsx
index 08d656a4..c565cb13 100644
--- a/components/LinkViews/LinkComponents/LinkActions.tsx
+++ b/components/LinkViews/LinkComponents/LinkActions.tsx
@@ -67,9 +67,9 @@ export default function LinkActions({
return (
<>
<div
- className={`dropdown dropdown-end dropdown-${
- flipDropdown ? "top" : "bottom"
- } absolute ${position || "top-3 right-3"} z-20`}
+ className={`dropdown dropdown-left dropdown-end absolute ${
+ position || "top-3 right-3"
+ } z-20`}
>
<div
tabIndex={0}
@@ -79,7 +79,7 @@ export default function LinkActions({
>
<i title="More" className="bi-three-dots text-xl" />
</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 ? (
<li>
<div
diff --git a/components/ModalContent/NewTokenModal.tsx b/components/ModalContent/NewTokenModal.tsx
index 15887d88..50565ed3 100644
--- a/components/ModalContent/NewTokenModal.tsx
+++ b/components/ModalContent/NewTokenModal.tsx
@@ -4,6 +4,7 @@ import { TokenExpiry } from "@/types/global";
import toast from "react-hot-toast";
import Modal from "../Modal";
import useTokenStore from "@/store/tokens";
+import { dropdownTriggerer } from "@/lib/client/utils";
type Props = {
onClose: Function;
@@ -92,6 +93,7 @@ export default function NewTokenModal({ onClose }: Props) {
<div
tabIndex={0}
role="button"
+ onMouseDown={dropdownTriggerer}
className="btn btn-outline w-36 flex items-center btn-sm h-10"
>
{token.expires === TokenExpiry.sevenDays && "7 Days"}