fix(Community): banners where overlapping

Closes #8947
This commit is contained in:
Alexandra Betouni 2023-01-10 14:26:39 +02:00 committed by Alexandra Betouni
parent 3de073edb8
commit 055fec9109
1 changed files with 3 additions and 16 deletions

View File

@ -437,12 +437,7 @@ Item {
(!localAccountSensitiveSettings.hiddenCommunityWelcomeBanners ||
!localAccountSensitiveSettings.hiddenCommunityWelcomeBanners.includes(communityData.id))
width: parent.width
height: {
// I dont know why, the binding doesn't work well if this isn't here
item && item.height
return active ? item.height : 0
}
height: item.height
sourceComponent: Component {
CommunityWelcomeBannerPanel {
activeCommunity: communityData
@ -459,11 +454,7 @@ Item {
(!localAccountSensitiveSettings.hiddenCommunityChannelAndCategoriesBanners ||
!localAccountSensitiveSettings.hiddenCommunityChannelAndCategoriesBanners.includes(communityData.id))
width: parent.width
height: {
// I dont know why, the binding doesn't work well if this isn't here
item && item.height
return active ? item.height : 0
}
height: item.height
sourceComponent: Component {
CommunityChannelsAndCategoriesBannerPanel {
id: channelsAndCategoriesBanner
@ -483,11 +474,7 @@ Item {
(!localAccountSensitiveSettings.hiddenCommunityBackUpBanners ||
!localAccountSensitiveSettings.hiddenCommunityBackUpBanners.includes(communityData.id))
width: parent.width
height: {
// I dont know why, the binding doesn't work well if this isn't here
item && item.height
return active ? item.height : 0
}
height: item.height
sourceComponent: Component {
BackUpCommuntyBannerPanel {
id: backupBanner