Commit 03c9dfe
committed
Make Remote Desktop tabs responsive at any window size
Wrap each Remote Desktop sub-tab in a ``QScrollArea`` with
``setWidgetResizable(True)`` (gui/remote_desktop/tab.py). This is
the responsive-sizing piece the panels were missing:
- On a small / shrunk window, dense tabs (especially the WebRTC
pair, which still has 6+ groupboxes even after the AnyDesk
popout removed the inline frame display) now scroll instead of
clipping or crushing widgets together.
- On an enlarged / 4K window, the panel widget grows horizontally
with the viewport so the connection card and session table
stretch to fill the available width instead of staying
hard-clustered at the top-left.
- The viewport's ``addStretch(1)`` at the bottom of each panel
still pushes content up when there's leftover height, so the
layout doesn't sag on huge displays.
Also relax the WebRTC host's session-table cap: ``setMaximumHeight
(140)`` was forcing the table to stay tiny even when the operator
had plenty of room. Replace it with ``setMinimumHeight(140)`` so
that's a starting hint, not a ceiling.
Verified with ruff (clean) and the 589-test headless suite.1 parent f444507 commit 03c9dfe
2 files changed
Lines changed: 36 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
| |||
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
15 | 41 | | |
16 | 42 | | |
17 | 43 | | |
18 | 44 | | |
19 | 45 | | |
20 | 46 | | |
21 | 47 | | |
| 48 | + | |
22 | 49 | | |
23 | 50 | | |
24 | 51 | | |
| |||
31 | 58 | | |
32 | 59 | | |
33 | 60 | | |
34 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
35 | 65 | | |
36 | 66 | | |
37 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
287 | 290 | | |
288 | 291 | | |
289 | 292 | | |
| |||
0 commit comments