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