mirror of https://github.com/ppy/osu
add truncation to base class
This commit is contained in:
parent
c6d4ce0f8a
commit
df8d4d8966
|
@ -102,6 +102,8 @@ public ChannelTabItem(Channel value)
|
||||||
Anchor = Anchor.CentreLeft,
|
Anchor = Anchor.CentreLeft,
|
||||||
Text = value.ToString(),
|
Text = value.ToString(),
|
||||||
Font = OsuFont.GetFont(size: 18, weight: FontWeight.Bold)
|
Font = OsuFont.GetFont(size: 18, weight: FontWeight.Bold)
|
||||||
|
Width = 115f,
|
||||||
|
Truncate = true,
|
||||||
},
|
},
|
||||||
CloseButton = new TabCloseButton
|
CloseButton = new TabCloseButton
|
||||||
{
|
{
|
||||||
|
|
|
@ -65,6 +65,8 @@ public PrivateChannelTabItem(Channel value)
|
||||||
|
|
||||||
Text.X = ChatOverlay.TAB_AREA_HEIGHT;
|
Text.X = ChatOverlay.TAB_AREA_HEIGHT;
|
||||||
TextBold.X = ChatOverlay.TAB_AREA_HEIGHT;
|
TextBold.X = ChatOverlay.TAB_AREA_HEIGHT;
|
||||||
|
|
||||||
|
Text.Width = 100f;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool ShowCloseOnHover => false;
|
protected override bool ShowCloseOnHover => false;
|
||||||
|
|
Loading…
Reference in New Issue