fix(@desktop/browser): Fix for Favorites bar is not shown without disabling and enabling toggle

Also fixed issue of overlap after a switch between disbaled to enabled state

fixes #4105
This commit is contained in:
Khushboo Mehta 2021-11-17 12:49:03 +01:00 committed by Khushboo-dev-cpp
parent defefa1bfe
commit da28629ffc
2 changed files with 2 additions and 3 deletions

View File

@ -31,7 +31,7 @@ Rectangle {
signal addNewFavoritelClicked(var xPos)
width: parent.width
height: barRow.height + favoritesBarLoader.height
height: barRow.height + (favoritesBarLoader.active ? favoritesBarLoader.height : 0)
color: Style.current.background
border.width: 0
@ -270,7 +270,6 @@ Rectangle {
Loader {
id: favoritesBarLoader
active: localAccountSensitiveSettings.shouldShowFavoritesBar
height: active ? item.height : 0
anchors.top: barRow.bottom
anchors.left: parent.left
anchors.leftMargin: Style.current.smallPadding

View File

@ -11,7 +11,7 @@ RowLayout {
property alias bookmarkModel: bookmarkList.model
spacing: 0
height: bookmarkModel.rowCount() > 0 ? 38: 0
height: 38
ListView {
id: bookmarkList