Bug 453769

Summary: GlobalDrawer doesn't auto-size to fit contents, causing it to almost always be much too wide
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: Jack Hill <jackhill3103>
Component: generalAssignee: Marco Martin <notmart>
Status: CONFIRMED ---    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.93.0   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Large sidebar

Description Jack Hill 2022-05-14 10:16:12 UTC
Created attachment 148822 [details]
Large sidebar

SUMMARY
The sidebar is too large

STEPS TO REPRODUCE
1. Open Emoji Selector
2. Click the sidebar button
3. Look at size of sidebar

OBSERVED RESULT
Sidebar adds a lot of unnecessary whitespace

EXPECTED RESULT
Width of sidebar should be the length of the longest string (maybe a bit of padding)

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220510
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-05-16 17:24:51 UTC
Ideally the sidebar would be able to size itself to the width of its contents, but unfortunately the Kirigami GlobalDrawer component that's used here can't do that.