feat(CommunitiesPortal): show placeholder when no search results

Closes: #7299
This commit is contained in:
Michał Cieślak 2022-09-28 20:48:12 +02:00 committed by Michał
parent e70fecaf2d
commit 4452574c24
1 changed files with 10 additions and 0 deletions

View File

@ -161,6 +161,16 @@ StatusSectionLayout {
onCardClicked: d.navigateToCommunity(communityId)
}
StatusBaseText {
anchors.top: parent.top
anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: parent.height / 3.1
visible: d.searchMode && searchModel.count === 0
text: qsTr("No communities found")
color: Theme.palette.baseColor1
font.pixelSize: 15
}
}
}
}