diff --git a/frontend/control/stack-pages/search-result-page.cpp b/frontend/control/stack-pages/search-result-page.cpp index 9f03df2..6c7fe1f 100644 --- a/frontend/control/stack-pages/search-result-page.cpp +++ b/frontend/control/stack-pages/search-result-page.cpp @@ -207,10 +207,18 @@ void SearchResultPage::initConnections() setWidth(672); }); connect(m_resultArea, &ResultArea::scrollBarAppeared, this, [ & ]{ - setWidth(672); + if (m_detailArea->isHidden()) { + setWidth(672); + } else { + setWidth(296); + } }); connect(m_resultArea, &ResultArea::scrollBarIsHideen, this, [ & ]{ - setWidth(672); + if (m_detailArea->isHidden()) { + setWidth(672); + } else { + setWidth(296); + } }); connect(m_resultArea, &ResultArea::keyPressChanged, m_detailArea, &DetailArea::setWidgetInfo); connect(m_resultArea, &ResultArea::keyPressChanged, this, [=] () {