many more improvements to the PWA

This commit is contained in:
daniel31x13
2024-01-20 00:34:49 -05:00
parent 86bcd5ef07
commit 4591f8ebc7
9 changed files with 106 additions and 78 deletions
@@ -18,6 +18,7 @@ type Props = {
position?: string;
toggleShowInfo?: () => void;
linkInfo?: boolean;
flipDropdown?: boolean;
};
export default function LinkActions({
@@ -25,6 +26,7 @@ export default function LinkActions({
toggleShowInfo,
position,
linkInfo,
flipDropdown,
}: Props) {
const permissions = usePermissions(link.collection.id as number);
@@ -65,9 +67,9 @@ export default function LinkActions({
return (
<>
<div
className={`dropdown dropdown-end dropdown-bottom absolute ${
position || "top-3 right-3"
} z-20`}
className={`dropdown dropdown-end dropdown-${
flipDropdown ? "top" : "bottom"
} absolute ${position || "top-3 right-3"} z-20`}
>
<div
tabIndex={0}