fix(CommunitiesPortal): display banner in community portal cards
Closes #7417
This commit is contained in:
parent
a21bbc8ba8
commit
2b8ee35e91
|
@ -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
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue