Bug 475131 - History sidebar is too narrow
Summary: History sidebar is too narrow
Status: CONFIRMED
Alias: None
Product: Falkon
Classification: Applications
Component: general (show other bugs)
Version: 23.08.1
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-02 14:27 UTC by Davide
Modified: 2024-08-10 06:34 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Default width of history sidebar (112.69 KB, image/jpeg)
2023-10-02 14:27 UTC, Davide
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Davide 2023-10-02 14:27:49 UTC
Created attachment 162024 [details]
Default width of history sidebar

SOFTWARE/OS VERSIONS
Linux/Trinity Desktop Environment: 
Qt Version: $(dpkg -s libqt5core5a | grep Version) -> 5.15.8+dfsg-11

ADDITIONAL INFORMATION
Pressing ctrl-h on the Falkon GUI opens the history sidebar, which appears too narrow as in attached screenshot.

The XML file `src/lib/sidebar/historysidebar.ui`, if related to this issue, specifies a width of 150px, but on my screen it renders at about 80px.
Comment 1 Davide 2023-10-04 10:27:14 UTC
Not a fix, but a workaround (works for me):

diff --git a/src/lib/sidebar/sidebar.cpp b/src/lib/sidebar/sidebar.cpp
index 0c023fe54..4f64359b2 100644
--- a/src/lib/sidebar/sidebar.cpp
+++ b/src/lib/sidebar/sidebar.cpp
@@ -63,14 +63,14 @@ void SideBar::setWidget(QWidget* widget)

 void SideBar::showBookmarks()
 {
-    m_titleBar->setTitle(tr("Bookmarks"));
+    m_titleBar->setTitle(tr("Bookmarks                                            "));
     auto* bar = new BookmarksSidebar(m_window);
     setWidget(bar);
 }

 void SideBar::showHistory()
 {
-    m_titleBar->setTitle(tr("History"));
+    m_titleBar->setTitle(tr("History                                              "));
     auto* bar = new HistorySideBar(m_window);
     setWidget(bar);
 }