Adjustments for the minimized sidebar
This commit is contained in:
parent
2295d681a4
commit
aa486a5c0c
12 changed files with 74 additions and 46 deletions
|
|
@ -181,9 +181,10 @@ MainWindow::resizeEvent(QResizeEvent *event)
|
|||
void
|
||||
MainWindow::adjustSideBars()
|
||||
{
|
||||
const uint64_t timelineWidth = chat_page_->timelineWidth();
|
||||
const uint64_t minAvailableWidth =
|
||||
conf::sideBarCollapsePoint + ui::sidebar::CommunitiesSidebarSize;
|
||||
const auto sz = utils::calculateSidebarSizes(QFont{});
|
||||
|
||||
const uint64_t timelineWidth = chat_page_->timelineWidth();
|
||||
const uint64_t minAvailableWidth = sz.collapsePoint + sz.groups;
|
||||
|
||||
if (timelineWidth < minAvailableWidth && !chat_page_->isSideBarExpanded()) {
|
||||
chat_page_->hideSideBars();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue