diff --git a/components/CropPopup.vue b/components/CropPopup.vue index 7671e4d..2e1a6b1 100644 --- a/components/CropPopup.vue +++ b/components/CropPopup.vue @@ -1,6 +1,9 @@ @@ -100,6 +101,8 @@ async function changeAvatar() { const file = input.files[0]; if (!file) return; + newPfpFile = file + const reader = new FileReader(); reader.addEventListener("load", () => { if (reader.result && typeof reader.result === 'string') { @@ -168,21 +171,4 @@ function closeCropPopup() { #profile-popup { margin-left: 2dvw; } - -#crop-popup-container { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - z-index: 10; - background: rgba(0,0,0,0.5); -} - -#crop-popup-preview { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); -} \ No newline at end of file diff --git a/components/UserPopup.vue b/components/UserPopup.vue index a3a15cb..3a65cf0 100644 --- a/components/UserPopup.vue +++ b/components/UserPopup.vue @@ -59,14 +59,12 @@ const props = defineProps<{ width: 96px; height: 96px; border: 5px solid #4b3018; - background-color: var(--secondary-color); border-radius: 100%; position: absolute; left: 16px; top: 16px; } - #display-name { margin-top: 60px; margin-bottom: 0;