1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 13:57:10 +09:00

DROID-1810 Editor | Fix | Trim titles for link blocks (#841)

This commit is contained in:
Evgenii Kozlov 2024-02-08 11:01:47 +01:00 committed by GitHub
parent 335e9a09ce
commit 9dd320f2f6
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -1658,7 +1658,7 @@ class DefaultBlockViewRenderer @Inject constructor(
ObjectIcon.None
}
val name = obj.getProperObjectName()
val name = obj.getProperObjectName()?.trim()
val description = when (inEditorAppearance.description) {
InEditor.Description.NONE -> null
@ -1836,7 +1836,7 @@ class DefaultBlockViewRenderer @Inject constructor(
isEmpty = true,
emoji = null,
image = null,
text = obj.getProperObjectName(),
text = obj.getProperObjectName()?.trim(),
indent = indent,
isSelected = checkIfSelected(
mode = mode,