diff --git a/components/Modal/ProfilePopup.vue b/components/Modal/ProfilePopup.vue index 8706263..b99a9ea 100644 --- a/components/Modal/ProfilePopup.vue +++ b/components/Modal/ProfilePopup.vue @@ -214,8 +214,21 @@ function buttonEditProfile() { align-self: center; + width: 100%; font-size: .8em; font-weight: lighter; + + white-space: pre-line; + line-height: 1; + max-height: 7em; /* 7 x 1 */ + + overflow-y: auto; + overflow-x: hidden; + scrollbar-width: none; +} + +#about-me-text::-webkit-scrollbar { + display: none; } diff --git a/components/Settings/UserSettings/Profile.vue b/components/Settings/UserSettings/Profile.vue index 5e85095..64b522e 100644 --- a/components/Settings/UserSettings/Profile.vue +++ b/components/Settings/UserSettings/Profile.vue @@ -15,8 +15,11 @@ - - +
+
@@ -42,6 +45,7 @@ import type { UserResponse } from '~/types/interfaces'; let newPfpFile: File; const isCropPopupVisible = ref(false); const cropImageSrc = ref("") +const aboutMeInput = ref() const { fetchUser } = useAuth(); @@ -125,6 +129,12 @@ function handleCrop(blob: Blob, url: string) { function closeCropPopup() { isCropPopupVisible.value = false } + +function handleAboutMeKeyUp(event: KeyboardEvent) { + if (user && aboutMeInput.value) { + user.about = aboutMeInput.value.innerText + } +} \ No newline at end of file