mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 12:32:56 +08:00
Only add newline if necessary
This commit is contained in:
parent
3cc1b811ef
commit
72107c27c9
@ -127,7 +127,10 @@ namespace osu.Game.Overlays.Profile.Header
|
|||||||
anyInfoAdded |= tryAddInfo(FontAwesome.Solid.MapMarker, user.Location);
|
anyInfoAdded |= tryAddInfo(FontAwesome.Solid.MapMarker, user.Location);
|
||||||
anyInfoAdded |= tryAddInfo(OsuIcon.Heart, user.Interests);
|
anyInfoAdded |= tryAddInfo(OsuIcon.Heart, user.Interests);
|
||||||
anyInfoAdded |= tryAddInfo(FontAwesome.Solid.Suitcase, user.Occupation);
|
anyInfoAdded |= tryAddInfo(FontAwesome.Solid.Suitcase, user.Occupation);
|
||||||
bottomLinkContainer.NewLine();
|
|
||||||
|
if (anyInfoAdded)
|
||||||
|
bottomLinkContainer.NewLine();
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(user.Twitter))
|
if (!string.IsNullOrEmpty(user.Twitter))
|
||||||
anyInfoAdded |= tryAddInfo(FontAwesome.Brands.Twitter, "@" + user.Twitter, $@"https://twitter.com/{user.Twitter}");
|
anyInfoAdded |= tryAddInfo(FontAwesome.Brands.Twitter, "@" + user.Twitter, $@"https://twitter.com/{user.Twitter}");
|
||||||
anyInfoAdded |= tryAddInfo(FontAwesome.Brands.Discord, user.Discord);
|
anyInfoAdded |= tryAddInfo(FontAwesome.Brands.Discord, user.Discord);
|
||||||
|
Loading…
Reference in New Issue
Block a user