mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
parent
5267e0262b
commit
667ee75d66
3 changed files with 4 additions and 4 deletions
|
@ -1320,7 +1320,7 @@ ChatPage::showSideBars()
|
|||
top_bar_->disableBackButton();
|
||||
}
|
||||
|
||||
int
|
||||
uint64_t
|
||||
ChatPage::timelineWidth()
|
||||
{
|
||||
int sidebarWidth = sideBar_->size().width();
|
||||
|
|
|
@ -67,7 +67,7 @@ public:
|
|||
void deleteConfigs();
|
||||
|
||||
//! Calculate the width of the message timeline.
|
||||
int timelineWidth();
|
||||
uint64_t timelineWidth();
|
||||
bool isSideBarExpanded();
|
||||
//! Hide the room & group list (if it was visible).
|
||||
void hideSideBars();
|
||||
|
|
|
@ -181,8 +181,8 @@ MainWindow::resizeEvent(QResizeEvent *event)
|
|||
void
|
||||
MainWindow::adjustSideBars()
|
||||
{
|
||||
const int timelineWidth = chat_page_->timelineWidth();
|
||||
const int minAvailableWidth =
|
||||
const uint64_t timelineWidth = chat_page_->timelineWidth();
|
||||
const uint64_t minAvailableWidth =
|
||||
conf::sideBarCollapsePoint + ui::sidebar::CommunitiesSidebarSize;
|
||||
|
||||
if (timelineWidth < minAvailableWidth && !chat_page_->isSideBarExpanded()) {
|
||||
|
|
Loading…
Reference in a new issue