Adjust height of ShowMore button

This commit is contained in:
Andrei Zavatski 2020-01-31 09:51:56 +03:00
parent 4a444face1
commit 3b5b799d60
2 changed files with 5 additions and 2 deletions

View File

@ -40,13 +40,14 @@ public string Text
public ShowMoreButton() public ShowMoreButton()
{ {
AutoSizeAxes = Axes.Both; Height = 30;
Width = 140;
} }
protected override Drawable CreateContent() => new CircularContainer protected override Drawable CreateContent() => new CircularContainer
{ {
Masking = true, Masking = true,
Size = new Vector2(140, 30), RelativeSizeAxes = Axes.Both,
Children = new Drawable[] Children = new Drawable[]
{ {
background = new Box background = new Box

View File

@ -14,6 +14,8 @@ public class CommentsShowMoreButton : ShowMoreButton
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(OverlayColourProvider colourProvider) private void load(OverlayColourProvider colourProvider)
{ {
Height = 20;
IdleColour = colourProvider.Background2; IdleColour = colourProvider.Background2;
HoverColour = colourProvider.Background1; HoverColour = colourProvider.Background1;
ChevronIconColour = colourProvider.Foreground1; ChevronIconColour = colourProvider.Foreground1;