fix: simplify profile links and don't wrap

This commit is contained in:
Evangelos Paterakis 2022-11-13 13:00:59 +02:00
parent 2485871622
commit c595a0889c
No known key found for this signature in database
GPG Key ID: FE5185F095BFC8C9
2 changed files with 7 additions and 1 deletions

View File

@ -56,7 +56,8 @@ public class Tootle.Views.Profile : Views.Timeline {
if (account.fields != null) {
foreach (API.AccountField f in account.fields) {
var row = new Adw.ActionRow ();
var val = new Widgets.RichLabel (f.val);
var val = new Widgets.RichLabel (HtmlUtils.simplify (f.val));
val.wrap = false;
val.xalign = 1;
row.title = f.name;
row.add_suffix (val);

View File

@ -13,6 +13,11 @@ public class Tootle.Widgets.RichLabel : Adw.Bin {
set { widget.label = value; }
}
public bool wrap {
get { return widget.wrap; }
set { widget.wrap = value; }
}
public bool selectable {
get { return widget.selectable; }
set { widget.selectable = value; }