1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 15:03:13 +08:00

Apply suggestions

This commit is contained in:
TheWildTree 2020-03-15 18:32:12 +01:00
parent 280a009784
commit f1e54d2745
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
@ -73,7 +73,7 @@ namespace osu.Game.Overlays.Rankings.Tables
RelativeSizeAxes = Axes.Y;
TextAnchor = Anchor.CentreLeft;
if (country.FullName != null)
if (!string.IsNullOrEmpty(country.FullName))
AddLink(country.FullName, () => rankings?.ShowCountry(country));
}
}

View File

@ -76,7 +76,10 @@ namespace osu.Game.Overlays.Rankings.Tables
var isHighlighted = HighlightedColumn() == title;
var isGrade = GradeColumns().Contains(title);
return new HeaderText(title, isHighlighted) { Margin = new MarginPadding { Vertical = 5, Horizontal = isGrade ? 20 : 10 } };
return new HeaderText(title, isHighlighted)
{
Margin = new MarginPadding { Vertical = 5, Horizontal = isGrade ? 20 : 10 }
};
}
protected abstract Country GetCountry(TModel item);