Skip to content

Commit 6cb30fa

Browse files
committed
comment-tile: Set spacing instead of margin-top
1 parent d9659e4 commit 6cb30fa

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/exm-comment-tile.blp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,23 @@ using Gtk 4.0;
33
template $ExmCommentTile: Gtk.Widget {
44
Gtk.Box {
55
orientation: vertical;
6+
spacing: 6;
67

78
Gtk.Box {
89
orientation: horizontal;
910

1011
Gtk.Label author {
1112
styles [
12-
"heading"
13+
"heading",
1314
]
1415

15-
xalign: 0;
1616
label: bind template.comment as <$ExmComment>.author;
17+
xalign: 0;
1718
}
1819

1920
Gtk.Label author_badge {
2021
styles [
21-
"author-badge"
22+
"author-badge",
2223
]
2324

2425
label: _("Author");
@@ -35,11 +36,10 @@ template $ExmCommentTile: Gtk.Widget {
3536

3637
Gtk.Label {
3738
styles [
38-
"multiline"
39+
"multiline",
3940
]
4041

4142
label: bind template.comment as <$ExmComment>.comment;
42-
margin-top: 6;
4343
use-markup: true;
4444
wrap: true;
4545
wrap-mode: word_char;
@@ -48,10 +48,9 @@ template $ExmCommentTile: Gtk.Widget {
4848

4949
Gtk.Label date {
5050
styles [
51-
"dim-label"
51+
"dim-label",
5252
]
5353

54-
margin-top: 6;
5554
xalign: 0;
5655
}
5756
}

0 commit comments

Comments
 (0)