[gnome-maps] sendToDialog: Make the dialog adaptive



commit 6c9ad539556b523a3e6514f7a1b5e2f58b946b79
Author: James Westman <james flyingpimonster net>
Date:   Sun Nov 8 15:42:31 2020 -0600

    sendToDialog: Make the dialog adaptive
    
    - Decrease the width request from 400 to 360
    - Move the Copy and Send To buttons underneath the summary to make more
    space horizontally
    - Allow the summary label to wrap

 data/ui/send-to-dialog.ui | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/data/ui/send-to-dialog.ui b/data/ui/send-to-dialog.ui
index c5192b6d..c07560ea 100644
--- a/data/ui/send-to-dialog.ui
+++ b/data/ui/send-to-dialog.ui
@@ -6,7 +6,7 @@
     <property name="visible">False</property>
     <property name="can_focus">False</property>
     <property name="use_header_bar">1</property>
-    <property name="width-request">400</property>
+    <property name="width-request">360</property>
     <property name="title" translatable="yes">Open Location</property>
     <child type="action">
       <object class="GtkButton" id="cancelButton">
@@ -31,8 +31,8 @@
         <child>
           <object class="GtkBox">
             <property name="visible">True</property>
-            <property name="orientation">horizontal</property>
-            <property name="spacing">6</property>
+            <property name="orientation">vertical</property>
+            <property name="spacing">12</property>
             <child>
               <object class="GtkBox">
                 <property name="visible">True</property>
@@ -44,6 +44,8 @@
                     <property name="label">&#x2026;</property>
                     <property name="justify">left</property>
                     <property name="halign">start</property>
+                    <property name="wrap">True</property>
+                    <property name="xalign">0</property>
                   </object>
                 </child>
                 <child>
@@ -62,18 +64,20 @@
             <child>
               <object class="GtkBox">
                 <property name="visible">True</property>
-                <property name="orientation">vertical</property>
+                <property name="orientation">horizontal</property>
                 <property name="spacing">6</property>
                 <child>
                   <object class="GtkButton" id="copyButton">
                     <property name="visible">True</property>
                     <property name="label" translatable="yes">Copy</property>
+                    <property name="hexpand">True</property>
                   </object>
                 </child>
                 <child>
                   <object class="GtkButton" id="emailButton">
                     <property name="visible">True</property>
                     <property name="label" translatable="yes">Send To&#8230;</property>
+                    <property name="hexpand">True</property>
                   </object>
                 </child>
               </object>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]