fix(CommunitiesPortal): display banner in community portal cards

Closes #7417
This commit is contained in:
Michał Cieślak 2022-09-29 14:47:11 +02:00 committed by Michał
parent a21bbc8ba8
commit 2b8ee35e91
3 changed files with 14 additions and 1 deletions

View File

@ -186,6 +186,9 @@ Rectangle {
anchors.fill: parent
radius: d.bannerRadius
color: root.loaded ? root.communityColor : d.loadingColor2
// hide when image is loaded to avoid glitches on the edge
visible: image.status !== Image.Ready
}
Image {
id: image
@ -194,7 +197,7 @@ Rectangle {
anchors.centerIn: parent
fillMode: Image.PreserveAspectFit
smooth: true
visible: !root.loaded || !root.banner
visible: false
}
OpacityMask {
anchors.fill: image

File diff suppressed because one or more lines are too long

View File

@ -58,6 +58,7 @@ StatusScrollView {
communityId: model.communityId
loaded: model.available
logo: model.icon
banner: model.banner
name: model.name
description: model.description
members: model.members