Combine commit details's metadata rows from 4 to 2

Instead of showing timestamps on their own rows, move them to columns.
This saves vertical space, and avoids avatars being awkwardly aligned.

Closes https://gitlab.gnome.org/GNOME/gitg/-/issues/409

Related: https://gitlab.gnome.org/GNOME/gitg/-/issues/440
This commit is contained in:
Jean-François Fortin Tam 2024-02-10 12:26:59 -05:00 committed by Alberto Fanjul
parent fe1e97719e
commit d1dbdd1fb5

View File

@ -15,7 +15,7 @@
<property name="margin_start">12</property>
<property name="margin_end">12</property>
<property name="row_spacing">12</property>
<property name="column_spacing">6</property>
<property name="column_spacing">12</property>
<child>
<object class="GtkImage" id="image_avatar">
<property name="visible">True</property>
@ -35,6 +35,8 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="row_spacing">3</property>
<property name="column_spacing">12</property>
<child>
<object class="GtkLabel" id="label_author">
<property name="visible">True</property>
@ -57,11 +59,10 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="halign">start</property>
<property name="valign">start</property>
<property name="valign">end</property>
<property name="label">Author date</property>
<property name="selectable">True</property>
<property name="ellipsize">end</property>
<property name="margin_top">3</property>
<attributes>
<attribute name="scale" value="0.833333333333333"/>
</attributes>
@ -70,8 +71,8 @@
</style>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
</packing>
</child>
<child>
@ -89,7 +90,7 @@
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">2</property>
<property name="top_attach">1</property>
</packing>
</child>
<child>
@ -97,11 +98,10 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="halign">start</property>
<property name="valign">start</property>
<property name="valign">end</property>
<property name="label">Committer date</property>
<property name="selectable">True</property>
<property name="ellipsize">end</property>
<property name="margin_top">3</property>
<attributes>
<attribute name="scale" value="0.833333333333333"/>
</attributes>
@ -110,8 +110,8 @@
</style>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">3</property>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
</packing>
</child>
</object>