Bug 475131

Summary: History sidebar is too narrow
Product: [Applications] Falkon Reporter: Davide <baldiniebaldini>
Component: generalAssignee: David Rosca <nowrep>
Status: CONFIRMED ---    
Severity: normal CC: baldiniebaldini, jurajoravec, steamlie
Priority: NOR    
Version First Reported In: 23.08.1   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Default width of history sidebar

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);
 }