Skip to content

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

improvements to the PWA and mobile layout

daniel31x1386bcd5ef0788
diff --git a/components/LinkViews/LinkComponents/LinkActions.tsx b/components/LinkViews/LinkComponents/LinkActions.tsx
index bddab64e..7f8af67c 100644
--- a/components/LinkViews/LinkComponents/LinkActions.tsx
+++ b/components/LinkViews/LinkComponents/LinkActions.tsx
@@ -65,7 +65,7 @@ export default function LinkActions({
return (
<>
<div
- className={`dropdown dropdown-left absolute ${
+ className={`dropdown dropdown-end dropdown-bottom absolute ${
position || "top-3 right-3"
} z-20`}
>
diff --git a/components/ModalContent/EditCollectionModal.tsx b/components/ModalContent/EditCollectionModal.tsx
index ee4c5bcc..fbbf53e4 100644
--- a/components/ModalContent/EditCollectionModal.tsx
+++ b/components/ModalContent/EditCollectionModal.tsx
@@ -110,7 +110,7 @@ export default function EditCollectionModal({
className="btn btn-accent dark:border-violet-400 text-white w-fit ml-auto"
onClick={submit}
>
- Save
+ Save Changes
</button>
</div>
</Modal>
diff --git a/components/ModalContent/EditCollectionSharingModal.tsx b/components/ModalContent/EditCollectionSharingModal.tsx
index 11690a73..f54a3edb 100644
--- a/components/ModalContent/EditCollectionSharingModal.tsx
+++ b/components/ModalContent/EditCollectionSharingModal.tsx
@@ -445,7 +445,7 @@ export default function EditCollectionSharingModal({
className="btn btn-accent dark:border-violet-400 text-white w-fit ml-auto mt-3"
onClick={submit}
>
- Save
+ Save Changes
</button>
)}
</div>
diff --git a/components/ModalContent/EditLinkModal.tsx b/components/ModalContent/EditLinkModal.tsx
index 9878f4b7..9ba27fef 100644
--- a/components/ModalContent/EditLinkModal.tsx
+++ b/components/ModalContent/EditLinkModal.tsx
@@ -157,7 +157,7 @@ export default function EditLinkModal({ onClose, activeLink }: Props) {
className="btn btn-accent dark:border-violet-400 text-white"
onClick={submit}
>
- Save
+ Save Changes
</button>
</div>
</Modal>
diff --git a/components/ProfilePhoto.tsx b/components/ProfilePhoto.tsx
index ec25a6e1..340fa76c 100644
--- a/components/ProfilePhoto.tsx
+++ b/components/ProfilePhoto.tsx
@@ -45,7 +45,7 @@ export default function ProfilePhoto({
<div
className={`avatar skeleton rounded-full drop-shadow-md ${
className || ""
- } ${large || "w-8 h-8"}`}
+ } ${large ? "w-28 h-28" : "w-8 h-8"}`}
>
<div className="rounded-full w-full h-full ring-2 ring-neutral-content">
<Image
diff --git a/pages/settings/account.tsx b/pages/settings/account.tsx
index 999ffe18..8d3134ec 100644
--- a/pages/settings/account.tsx
+++ b/pages/settings/account.tsx
@@ -192,8 +192,8 @@ export default function Account() {
) : undefined}
</div>
- <div className="sm:row-span-2 sm:justify-self-center mx-auto my-3">
- <p className="mb-2 text-center">Profile Photo</p>
+ <div className="sm:row-span-2 sm:justify-self-center my-3">
+ <p className="mb-2 sm:text-center">Profile Photo</p>
<div className="w-28 h-28 flex items-center justify-center rounded-full relative">
<ProfilePhoto
priority={true}
@@ -349,8 +349,8 @@ export default function Account() {
<SubmitButton
onClick={submit}
loading={submitLoader}
- label="Save"
- className="mt-2 mx-auto lg:mx-0"
+ label="Save Changes"
+ className="mt-2 w-full sm:w-fit"
/>
<div>
@@ -375,7 +375,7 @@ export default function Account() {
<Link
href="/settings/delete"
- className="mx-auto lg:mx-0 text-white flex items-center gap-2 py-1 px-3 rounded-md text-lg tracking-wide select-none font-semibold duration-100 w-fit bg-red-500 hover:bg-red-400 cursor-pointer"
+ className="text-white w-full sm:w-fit flex items-center gap-2 py-2 px-4 rounded-md text-lg tracking-wide select-none font-semibold duration-100 bg-red-500 hover:bg-red-400 cursor-pointer"
>
<p className="text-center w-full">Delete Your Account</p>
</Link>
diff --git a/pages/settings/appearance.tsx b/pages/settings/appearance.tsx
index 385225a2..4adbff07 100644
--- a/pages/settings/appearance.tsx
+++ b/pages/settings/appearance.tsx
@@ -97,7 +97,7 @@ export default function Appearance() {
{/* <SubmitButton
onClick={submit}
loading={submitLoader}
- label="Save"
+ label="Save Changes"
className="mt-2 mx-auto lg:mx-0"
/> */}
</div>
diff --git a/pages/settings/archive.tsx b/pages/settings/archive.tsx
index f6646380..ead165e9 100644
--- a/pages/settings/archive.tsx
+++ b/pages/settings/archive.tsx
@@ -85,8 +85,8 @@ export default function Archive() {
<SubmitButton
onClick={submit}
loading={submitLoader}
- label="Save"
- className="mt-2 mx-auto lg:mx-0"
+ label="Save Changes"
+ className="mt-2 w-full sm:w-fit"
/>
</SettingsLayout>
);
diff --git a/pages/settings/password.tsx b/pages/settings/password.tsx
index 75f20cd2..ee8af3bc 100644
--- a/pages/settings/password.tsx
+++ b/pages/settings/password.tsx
@@ -77,8 +77,8 @@ export default function Password() {
<SubmitButton
onClick={submit}
loading={submitLoader}
- label="Save"
- className="mt-2 mx-auto lg:mx-0"
+ label="Save Changes"
+ className="mt-2 w-full sm:w-fit"
/>
</div>
</SettingsLayout>
diff --git a/public/site.webmanifest b/public/site.webmanifest
index 8f56d1db..0a9c4ab6 100644
--- a/public/site.webmanifest
+++ b/public/site.webmanifest
@@ -22,5 +22,6 @@
"theme_color":"#000000",
"background_color":"#000000",
"display":"standalone",
+ "orientation": "portrait",
"start_url": "/dashboard"
}
\ No newline at end of file