improvements to the PWA and mobile layout

This commit is contained in:
daniel31x13 2024-01-19 08:01:21 -05:00
parent dfe9fec4b4
commit 86bcd5ef07
10 changed files with 16 additions and 15 deletions

View File

@ -65,7 +65,7 @@ export default function LinkActions({
return ( return (
<> <>
<div <div
className={`dropdown dropdown-left absolute ${ className={`dropdown dropdown-end dropdown-bottom absolute ${
position || "top-3 right-3" position || "top-3 right-3"
} z-20`} } z-20`}
> >

View File

@ -110,7 +110,7 @@ export default function EditCollectionModal({
className="btn btn-accent dark:border-violet-400 text-white w-fit ml-auto" className="btn btn-accent dark:border-violet-400 text-white w-fit ml-auto"
onClick={submit} onClick={submit}
> >
Save Save Changes
</button> </button>
</div> </div>
</Modal> </Modal>

View File

@ -445,7 +445,7 @@ export default function EditCollectionSharingModal({
className="btn btn-accent dark:border-violet-400 text-white w-fit ml-auto mt-3" className="btn btn-accent dark:border-violet-400 text-white w-fit ml-auto mt-3"
onClick={submit} onClick={submit}
> >
Save Save Changes
</button> </button>
)} )}
</div> </div>

View File

@ -157,7 +157,7 @@ export default function EditLinkModal({ onClose, activeLink }: Props) {
className="btn btn-accent dark:border-violet-400 text-white" className="btn btn-accent dark:border-violet-400 text-white"
onClick={submit} onClick={submit}
> >
Save Save Changes
</button> </button>
</div> </div>
</Modal> </Modal>

View File

@ -45,7 +45,7 @@ export default function ProfilePhoto({
<div <div
className={`avatar skeleton rounded-full drop-shadow-md ${ className={`avatar skeleton rounded-full drop-shadow-md ${
className || "" 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"> <div className="rounded-full w-full h-full ring-2 ring-neutral-content">
<Image <Image

View File

@ -192,8 +192,8 @@ export default function Account() {
) : undefined} ) : undefined}
</div> </div>
<div className="sm:row-span-2 sm:justify-self-center mx-auto my-3"> <div className="sm:row-span-2 sm:justify-self-center my-3">
<p className="mb-2 text-center">Profile Photo</p> <p className="mb-2 sm:text-center">Profile Photo</p>
<div className="w-28 h-28 flex items-center justify-center rounded-full relative"> <div className="w-28 h-28 flex items-center justify-center rounded-full relative">
<ProfilePhoto <ProfilePhoto
priority={true} priority={true}
@ -349,8 +349,8 @@ export default function Account() {
<SubmitButton <SubmitButton
onClick={submit} onClick={submit}
loading={submitLoader} loading={submitLoader}
label="Save" label="Save Changes"
className="mt-2 mx-auto lg:mx-0" className="mt-2 w-full sm:w-fit"
/> />
<div> <div>
@ -375,7 +375,7 @@ export default function Account() {
<Link <Link
href="/settings/delete" 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> <p className="text-center w-full">Delete Your Account</p>
</Link> </Link>

View File

@ -97,7 +97,7 @@ export default function Appearance() {
{/* <SubmitButton {/* <SubmitButton
onClick={submit} onClick={submit}
loading={submitLoader} loading={submitLoader}
label="Save" label="Save Changes"
className="mt-2 mx-auto lg:mx-0" className="mt-2 mx-auto lg:mx-0"
/> */} /> */}
</div> </div>

View File

@ -85,8 +85,8 @@ export default function Archive() {
<SubmitButton <SubmitButton
onClick={submit} onClick={submit}
loading={submitLoader} loading={submitLoader}
label="Save" label="Save Changes"
className="mt-2 mx-auto lg:mx-0" className="mt-2 w-full sm:w-fit"
/> />
</SettingsLayout> </SettingsLayout>
); );

View File

@ -77,8 +77,8 @@ export default function Password() {
<SubmitButton <SubmitButton
onClick={submit} onClick={submit}
loading={submitLoader} loading={submitLoader}
label="Save" label="Save Changes"
className="mt-2 mx-auto lg:mx-0" className="mt-2 w-full sm:w-fit"
/> />
</div> </div>
</SettingsLayout> </SettingsLayout>

View File

@ -22,5 +22,6 @@
"theme_color":"#000000", "theme_color":"#000000",
"background_color":"#000000", "background_color":"#000000",
"display":"standalone", "display":"standalone",
"orientation": "portrait",
"start_url": "/dashboard" "start_url": "/dashboard"
} }