Merge pull request #4628 from nextcloud/feature/emoji-picker-placeholder-message

This commit is contained in:
Claudio Cambra 2022-07-12 15:29:24 +02:00 committed by GitHub
commit b707aef3a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,6 +87,7 @@ ColumnLayout {
}
GridView {
id: emojiView
Layout.fillWidth: true
Layout.fillHeight: true
Layout.preferredHeight: metrics.height * 8
@ -125,6 +126,16 @@ ColumnLayout {
}
}
Label {
id: placeholderMessage
anchors.centerIn: parent
text: qsTr("No recent emojis")
color: Style.ncSecondaryTextColor
wrapMode: Text.Wrap
font.bold: true
visible: emojiView.count === 0
}
ScrollBar.vertical: ScrollBar {}
}