From 72c3e1c9717d22312ecae51506bb73fa06a0888c Mon Sep 17 00:00:00 2001 From: "Teodor M. Ionita" Date: Tue, 8 Aug 2023 16:54:36 +0300 Subject: [PATCH] Trim white space before and after profile bio text Fixes #7924 --- .../AppLayouts/Profile/views/profile/MyProfileSettingsView.qml | 2 +- ui/imports/shared/panels/ProfileBioSocialsPanel.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/AppLayouts/Profile/views/profile/MyProfileSettingsView.qml b/ui/app/AppLayouts/Profile/views/profile/MyProfileSettingsView.qml index bb263589d5..abfadbd8a0 100644 --- a/ui/app/AppLayouts/Profile/views/profile/MyProfileSettingsView.qml +++ b/ui/app/AppLayouts/Profile/views/profile/MyProfileSettingsView.qml @@ -55,7 +55,7 @@ ColumnLayout { function save() { if (!descriptionPanel.isEnsName) profileStore.setDisplayName(descriptionPanel.displayName.text) - profileStore.setBio(descriptionPanel.bio.text) + profileStore.setBio(descriptionPanel.bio.text.trim()) profileStore.saveSocialLinks() if (profileHeader.icon === "") { root.profileStore.removeImage() diff --git a/ui/imports/shared/panels/ProfileBioSocialsPanel.qml b/ui/imports/shared/panels/ProfileBioSocialsPanel.qml index 90869b29c6..18edc92c54 100644 --- a/ui/imports/shared/panels/ProfileBioSocialsPanel.qml +++ b/ui/imports/shared/panels/ProfileBioSocialsPanel.qml @@ -84,7 +84,7 @@ Control { StatusBaseText { id: bioText - text: root.bio + text: root.bio.trim() wrapMode: Text.Wrap font.weight: Font.Medium lineHeight: 1.2