window: Use sp instead of px for breakpoints

sp is a unit provided by libadwaita for sclae-independent pixels.
This unit changes with the text scale factor.

Part-of: <https://gitlab.gnome.org/GNOME/Incubator/loupe/-/merge_requests/228>
This commit is contained in:
Christopher Davis 2023-05-31 07:01:52 -04:00 • committed by Marge Bot
parent a5cb0606b4
commit 77c81c8f7c

View file

@ -70,7 +70,7 @@
</binding> </binding>
<child> <child>
<object class="AdwBreakpoint"> <object class="AdwBreakpoint">
<condition>max-width: 590px</condition> <condition>max-width: 590sp</condition>
<setter object="properties_flap" property="orientation">vertical</setter> <setter object="properties_flap" property="orientation">vertical</setter>
</object> </object>
</child> </child>