mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 17:27:48 +08:00
Adjust padding to avoid overlap with card border when expanded
This commit is contained in:
parent
66a6084d3f
commit
07bfac40fa
@ -95,7 +95,9 @@ namespace osu.Game.Beatmaps.Drawables.Cards
|
|||||||
Child = buttons = new Container<BeatmapCardIconButton>
|
Child = buttons = new Container<BeatmapCardIconButton>
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Padding = new MarginPadding(3),
|
// Padding of 4 avoids touching the card borders when in the expanded (ie. showing difficulties) state.
|
||||||
|
// Left override allows the buttons to visually be wider and look better.
|
||||||
|
Padding = new MarginPadding(4) { Left = 2 },
|
||||||
Children = new BeatmapCardIconButton[]
|
Children = new BeatmapCardIconButton[]
|
||||||
{
|
{
|
||||||
new FavouriteButton(beatmapSet)
|
new FavouriteButton(beatmapSet)
|
||||||
|
Loading…
Reference in New Issue
Block a user