Bug 468897 - Capture mode buttons with really long text can overflow the UI
Summary: Capture mode buttons with really long text can overflow the UI
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 23.04.0
Platform: Other Linux
: VHI normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
: 469246 469252 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-04-24 10:56 UTC by Szczepan Hołyszewski
Modified: 2024-01-10 20:04 UTC (History)
4 users (show)

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


Attachments
Clipped buttons in the sidebar (347.00 KB, image/png)
2023-04-24 12:02 UTC, Szczepan Hołyszewski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Szczepan Hołyszewski 2023-04-24 10:56:03 UTC
SUMMARY

Due to longer button labels in Polish localization, the UI in the first tab of the settings pane to the right of the screenshot area has larger content-determined minimum size than the settings pane can accomodate, and the settings pane fails to resize to fit contents, resulting in clipped UI.

I failed to figure out how to make a screenshot of Spectacle itself, so no screenshot.

STEPS TO REPRODUCE
1. Launch spectacle

OBSERVED RESULT

The UI in the first tab of the settings pane is clipped; the settings pane does grow in width to fit content.

EXPECTED RESULT

The UI in the first tab of the settings pane shouldn't be clipped; the settings pane should grow in width to fit content.

SOFTWARE/OS VERSIONS

Operating System: Arch Linux 
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Kernel Version: 6.2.12-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION

Couldn't figure out how to make a screenshot of the spectacle window itself, so no screenshot.
Comment 1 Szczepan Hołyszewski 2023-04-24 10:58:25 UTC
ERRATA:

OBSERVED RESULT:

The UI in the first tab of the settings pane is clipped; the settings pane does * not * grow in width to fit content.

(Please, PLEASE, upgrade to a bugtracker that allows fixing typos).
Comment 2 Noah Davis 2023-04-24 11:41:24 UTC
By "settings pane", do you mean the sidebar on the right with the checkboxes for things like whether or not to include the mouse pointer? A picture would help us find the part of the UI that needs to be fixed.
Comment 3 Szczepan Hołyszewski 2023-04-24 11:47:10 UTC
(In reply to Noah Davis from comment #2)
> By "settings pane", do you mean the sidebar on the right with the checkboxes
> for things like whether or not to include the mouse pointer? A picture would
> help us find the part of the UI that needs to be fixed.

Yes, that's what I mean. Please instruct me how to obtain a screenshot of the Spectacle window itself.
Comment 4 Szczepan Hołyszewski 2023-04-24 11:54:22 UTC
More specifically, the first tab of the sidebar has two sections (labels backtranslated, may differ from original):

"Make a new screenshots"
"Screenshot settings"

The first section contains a number of command buttons, and it's those buttons that are clipped on the right.

The second section appears OK, and the checkboxes' labels are wrapped to the sidebar's width.
Comment 5 Noah Davis 2023-04-24 11:55:28 UTC
(In reply to Szczepan Hołyszewski from comment #3)
> Yes, that's what I mean. Please instruct me how to obtain a screenshot of
> the Spectacle window itself.

Open Konsole, enter `spectacle --new-instance` or `spectacle -i` (same thing, just shorter), then use the new instance of spectacle to take a screenshot of the other spectacle.
Comment 6 Szczepan Hołyszewski 2023-04-24 12:02:05 UTC
Created attachment 158381 [details]
Clipped buttons in the sidebar

Used `spectacle --new-instance`.
Comment 7 Nate Graham 2023-04-24 19:36:16 UTC
That really long string could hopefully be reduced *somehow* though.
Comment 8 Noah Davis 2023-05-01 21:09:19 UTC
*** Bug 469246 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2023-05-02 17:47:24 UTC
*** Bug 469252 has been marked as a duplicate of this bug. ***
Comment 10 Nate Graham 2024-01-10 16:27:59 UTC
This appears to be fixed in the upcoming KF6-based version of Spectacle; `LANG=pl_PL spectacle` now works fine for me.