Skip to content

Commit

Permalink
Fix search bar separator in tray window
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Nov 19, 2024
1 parent ddf7128 commit 7dcfe95
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/gui/tray/MainWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -593,26 +593,26 @@ ApplicationWindow {
isSearchInProgress: UserModel.currentUser.unifiedSearchResultsListModel.isSearchInProgress
onTextEdited: { UserModel.currentUser.unifiedSearchResultsListModel.searchTerm = trayWindowUnifiedSearchInputContainer.text }
onClearText: { UserModel.currentUser.unifiedSearchResultsListModel.searchTerm = "" }
}

// TODO: consult designers, this line looks weird atm
// Rectangle {
// id: bottomUnifiedSearchInputSeparator
Rectangle {
id: bottomUnifiedSearchInputSeparator

// anchors.left: parent.left
// anchors.right: parent.right
// anchors.bottom: parent.bottom
anchors.top: trayWindowUnifiedSearchInputContainer.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.topMargin: Style.trayHorizontalMargin

// height: 1
// color: Style.menuBorder
// visible: trayWindowMainItem.isUnifiedSearchActive
// }
height: 1
color: Style.menuBorder
visible: trayWindowMainItem.isUnifiedSearchActive
}

ErrorBox {
id: unifiedSearchResultsErrorLabel
visible: UserModel.currentUser.unifiedSearchResultsListModel.errorString && !unifiedSearchResultsListView.visible && ! UserModel.currentUser.unifiedSearchResultsListModel.isSearchInProgress && ! UserModel.currentUser.unifiedSearchResultsListModel.currentFetchMoreInProgressProviderId
text: UserModel.currentUser.unifiedSearchResultsListModel.errorString
anchors.top: trayWindowUnifiedSearchInputContainer.bottom
anchors.top: bottomUnifiedSearchInputSeparator.bottom
anchors.left: trayWindowMainItem.left
anchors.right: trayWindowMainItem.right
anchors.margins: Style.trayHorizontalMargin
Expand All @@ -621,7 +621,7 @@ ApplicationWindow {
UnifiedSearchResultNothingFound {
id: unifiedSearchResultNothingFound

anchors.top: trayWindowUnifiedSearchInputContainer.bottom
anchors.top: bottomUnifiedSearchInputSeparator.bottom
anchors.left: trayWindowMainItem.left
anchors.right: trayWindowMainItem.right
anchors.topMargin: Style.trayHorizontalMargin
Expand All @@ -639,7 +639,7 @@ ApplicationWindow {
Loader {
id: unifiedSearchResultsListViewSkeletonLoader

anchors.top: trayWindowUnifiedSearchInputContainer.bottom
anchors.top: bottomUnifiedSearchInputSeparator.bottom
anchors.left: trayWindowMainItem.left
anchors.right: trayWindowMainItem.right
anchors.bottom: trayWindowMainItem.bottom
Expand Down Expand Up @@ -668,7 +668,7 @@ ApplicationWindow {
}
visible: unifiedSearchResultsListView.count > 0

anchors.top: trayWindowUnifiedSearchInputContainer.bottom
anchors.top: bottomUnifiedSearchInputSeparator.bottom
anchors.left: trayWindowMainItem.left
anchors.right: trayWindowMainItem.right
anchors.bottom: trayWindowMainItem.bottom
Expand Down

0 comments on commit 7dcfe95

Please sign in to comment.