diff --git a/components/CropPopup.vue b/components/CropPopup.vue index 2e1a6b1..7671e4d 100644 --- a/components/CropPopup.vue +++ b/components/CropPopup.vue @@ -1,9 +1,6 @@ @@ -101,8 +100,6 @@ 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') { @@ -171,4 +168,21 @@ 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 3a65cf0..a3a15cb 100644 --- a/components/UserPopup.vue +++ b/components/UserPopup.vue @@ -59,12 +59,14 @@ 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;