Skip to content

Commit b707aef

Browse files
authored
Merge pull request #4628 from nextcloud/feature/emoji-picker-placeholder-message
2 parents e37746d + e0041fe commit b707aef

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/gui/EmojiPicker.qml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ ColumnLayout {
8787
}
8888

8989
GridView {
90+
id: emojiView
9091
Layout.fillWidth: true
9192
Layout.fillHeight: true
9293
Layout.preferredHeight: metrics.height * 8
@@ -125,6 +126,16 @@ ColumnLayout {
125126
}
126127
}
127128

129+
Label {
130+
id: placeholderMessage
131+
anchors.centerIn: parent
132+
text: qsTr("No recent emojis")
133+
color: Style.ncSecondaryTextColor
134+
wrapMode: Text.Wrap
135+
font.bold: true
136+
visible: emojiView.count === 0
137+
}
138+
128139
ScrollBar.vertical: ScrollBar {}
129140

130141
}

0 commit comments

Comments
 (0)