Trim white space before and after profile bio text

Fixes #7924
This commit is contained in:
Teodor M. Ionita 2023-08-08 16:54:36 +03:00 committed by Shinnok
parent a1e1e316db
commit 72c3e1c971
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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