-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help text in policy editor is wrapped to too wide size #204
Conversation
I appreciate if this one could be put through an Open QA test. So we could see how it looks on 1024x768 displays. |
PipelineRetryFailed |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #204 +/- ##
=======================================
Coverage 93.54% 93.55%
=======================================
Files 57 57
Lines 10816 10827 +11
=======================================
+ Hits 10118 10129 +11
Misses 698 698 ☔ View full report in Codecov by Sentry. |
OpenQA test summaryComplete test suite and dependencies: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2024071717-4.3&flavor=pull-requests Test run included the following:
New failures, excluding unstableCompared to: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2024070519-4.3&flavor=update
Failed tests40 failures
Fixed failuresCompared to: https://openqa.qubes-os.org/tests/105374#dependencies 8 fixed
Unstable tests
|
Now the window fits on the screen (yay!), but the help text is cut (kinda expected) and there is no horizontal scrolling in the help text area to see remaining part of it... |
I am struggling to find the exact OpenQA test to see the screen snapshots. It is not in any of
Yes. I did not expect it to fit horizontally on 1024 width screens. Non-existent horizontal scrolling is expected behaviour. If auto-wrap is on, GTK has to automatically break lines to fit text horizontally. Thus, there should be no need for horizontal scrolling. As I mentioned in Github issue commenting area, we have a problem on screen width less than 1366 pixels. We have too much data to show. It is possible to add a special case for 1024 width screens. There was another bug at the moment that had to be fixed. If you try to resize the help box by its left border, it pushes the main policy area to the left instead of resizing it (like picture below). That is why line 150 & 151 are changed in PR: |
There is none. I took the VM disk image and started policy editor there manually...
Correction - neither scrollback is there, but scrolling via mouse wheel works in one direction (but not the other for some reason). |
I believe I know what is happening here. The help box is cropped. I will push a fix for screens smaller than 1366 in few minutes. Hopefully 1024 pixel screen width would be the minimum requirement for Qubes OS. |
Also improving Window size on other display sizes
OK. I added a fix for 1024x768 displays. It includes improvements for other display sizes. As well as some minor improvements. For future improvements, I am currently testing a display-manager independent Windowing area size measurement class. It uses a maximized border-less and title-less transparent dialog shown for a fraction of a second. It measures display size minus taskbar & window title bar. Fully compatible with both X11 and Wayland. Independent from themes. Hopefully it would be useful for policy editor, App Menu, Updater and other widgets in the future. |
Be careful, it will likely trigger override-redirect protection when used from within a VM |
Sure. Even with qubes-guid allocated two X two pixels for override_redirect VM windows, it will be much better and more comfortable than guessing the screen size and theme. |
Fixes: QubesOS/qubes-issues#9060