ui: use default-width/height so the window can shrink under tiling

Compositors that tile the window (Hyprland and similar) honor min-size
hints by clipping the window's bottom rather than shrinking it, leaving
the lower portion of the layout — including the bottom of "Incoming
Connections" — rendered off-screen. Using default-width/default-height
suggests an initial size while letting the compositor resize freely,
so scrolling reaches all content. Also drops propagate-natural-height
on the scrolled window and adds margin-bottom to the inner content for
breathing room.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jon Kinney 2026-04-29 18:59:10 -05:00
parent ec747351fe
commit 13e5e211f3

View file

@ -9,8 +9,8 @@
</item>
</menu>
<template class="LanMouseWindow" parent="AdwApplicationWindow">
<property name="width-request">600</property>
<property name="height-request">700</property>
<property name="default-width">600</property>
<property name="default-height">700</property>
<property name="title" translatable="yes">Lan Mouse</property>
<property name="show-menubar">True</property>
<property name="content">
@ -37,7 +37,6 @@
<property name="hexpand">true</property>
<property name="hscrollbar-policy">never</property>
<property name="vscrollbar-policy">automatic</property>
<property name="propagate-natural-height">true</property>
<child>
<object class="AdwStatusPage">
<property name="title" translatable="yes">Lan Mouse</property>
@ -51,6 +50,7 @@
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<property name="margin-bottom">36</property>
<child>
<object class="AdwPreferencesGroup" id="capture_emulation_group">
<property name="title" translatable="yes">Capture / Emulation Status</property>