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

File diff suppressed because one or more lines are too long

View File

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