fix: Fix the rich text display on the About page

This commit is contained in:
loner
2025-11-21 22:14:57 +08:00
parent fe40758d4e
commit a39fbb5639
2 changed files with 3 additions and 0 deletions

View File

@@ -146,6 +146,7 @@ ColumnLayout {
}) : I18n.tr("settings.about.contributors.section.description_plural", { }) : I18n.tr("settings.about.contributors.section.description_plural", {
"count": root.contributors.length "count": root.contributors.length
}) })
enableDescriptionRichText: true
} }
GridView { GridView {

View File

@@ -7,6 +7,7 @@ ColumnLayout {
property string label: "" property string label: ""
property string description: "" property string description: ""
property bool enableDescriptionRichText: false
spacing: Style.marginXXS spacing: Style.marginXXS
Layout.fillWidth: true Layout.fillWidth: true
@@ -27,5 +28,6 @@ ColumnLayout {
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
Layout.fillWidth: true Layout.fillWidth: true
visible: root.description !== "" visible: root.description !== ""
richTextEnabled: root.enableDescriptionRichText
} }
} }