From 873f1c81a91d2aeaa176b286c8f67fd94ab66f6d Mon Sep 17 00:00:00 2001 From: JustTemmie <47639983+JustTemmie@users.noreply.github.com> Date: Fri, 4 Jul 2025 06:34:15 +0200 Subject: [PATCH 1/2] fix: remove weird spacing due to weird profile popup inheritance --- components/MemberEntry.vue | 7 +------ components/Settings/UserSettings/Account.vue | 4 ---- components/Settings/UserSettings/Profile.vue | 4 ++-- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/components/MemberEntry.vue b/components/MemberEntry.vue index 3eed3c5..c77c429 100644 --- a/components/MemberEntry.vue +++ b/components/MemberEntry.vue @@ -3,7 +3,7 @@ {{ props.member.user.display_name ?? props.member.user.username }} - + @@ -32,9 +32,4 @@ const hidePopup = () => { .member-item { position: relative; /* Set the position to relative for absolute positioning of the popup */ } - -.profile-popup { - position: absolute; /* Use absolute positioning */ - left: -100px; /* Adjust this value to position the popup to the left */ -} diff --git a/components/Settings/UserSettings/Account.vue b/components/Settings/UserSettings/Account.vue index 85589e7..ffbb9d7 100644 --- a/components/Settings/UserSettings/Account.vue +++ b/components/Settings/UserSettings/Account.vue @@ -93,8 +93,4 @@ async function deleteAccount() { color: var(--text-color); background-color: var(--accent-color); } - -.profile-popup { - margin-left: 2dvw; -} \ No newline at end of file diff --git a/components/Settings/UserSettings/Profile.vue b/components/Settings/UserSettings/Profile.vue index 13a717a..f1a550b 100644 --- a/components/Settings/UserSettings/Profile.vue +++ b/components/Settings/UserSettings/Profile.vue @@ -20,7 +20,7 @@ - + @@ -133,7 +133,7 @@ async function changeAvatar() { background-color: var(--accent-color); } -.profile-popup { +#profile-popup { margin-left: 2dvw; } \ No newline at end of file From 3c4965c06f96ee215834dc2ea1fb14f0037d600d Mon Sep 17 00:00:00 2001 From: JustTemmie <47639983+JustTemmie@users.noreply.github.com> Date: Fri, 4 Jul 2025 08:04:50 +0200 Subject: [PATCH 2/2] feat: start implementing image cropping when uploading pfp still need to fix the selection to within the canvas boundries, and fix theming --- components/CropPopup.vue | 61 ++++++++++ components/Settings/UserSettings/Profile.vue | 37 ++++++- package.json | 1 + pnpm-lock.yaml | 110 +++++++++++++++++++ 4 files changed, 208 insertions(+), 1 deletion(-) create mode 100644 components/CropPopup.vue diff --git a/components/CropPopup.vue b/components/CropPopup.vue new file mode 100644 index 0000000..2e1a6b1 --- /dev/null +++ b/components/CropPopup.vue @@ -0,0 +1,61 @@ + + + + + diff --git a/components/Settings/UserSettings/Profile.vue b/components/Settings/UserSettings/Profile.vue index f1a550b..1df8c44 100644 --- a/components/Settings/UserSettings/Profile.vue +++ b/components/Settings/UserSettings/Profile.vue @@ -21,12 +21,23 @@ + + + +
+