fix(CommunityColumnView): fix unwanted space after closing banners

- the banners should not leave empty space after closing them
This commit is contained in:
Lukáš Tinkl 2025-02-18 09:26:05 +01:00 committed by Lukáš Tinkl
parent af3ee0a1c0
commit 6095f04bd0

View File

@ -405,7 +405,7 @@ Item {
(!localAccountSensitiveSettings.hiddenCommunityWelcomeBanners ||
!localAccountSensitiveSettings.hiddenCommunityWelcomeBanners.includes(communityData.id))
width: parent.width
height: item.height
height: !!item ? item.height : 0
sourceComponent: Component {
WelcomeBannerPanel {
activeCommunity: communityData
@ -421,7 +421,7 @@ Item {
(!localAccountSensitiveSettings.hiddenCommunityChannelAndCategoriesBanners ||
!localAccountSensitiveSettings.hiddenCommunityChannelAndCategoriesBanners.includes(communityData.id))
width: parent.width
height: item.height
height: !!item ? item.height : 0
sourceComponent: Component {
ChannelsAndCategoriesBannerPanel {
id: channelsAndCategoriesBanner