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