mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 15:03:13 +08:00
Apply suggestions
This commit is contained in:
parent
280a009784
commit
f1e54d2745
@ -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));
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user