mirror of https://github.com/ppy/osu
Use MaxWidth specification
This commit is contained in:
parent
c6b8f2db77
commit
eeebd517f3
|
@ -31,7 +31,7 @@ public class ChatLine : CompositeDrawable
|
|||
|
||||
protected virtual float MessagePadding => default_message_padding;
|
||||
|
||||
private const float timestamp_padding = 70;
|
||||
private const float timestamp_padding = 65;
|
||||
|
||||
private const float default_horizontal_padding = 15;
|
||||
|
||||
|
@ -92,7 +92,9 @@ private void load(OsuColour colours)
|
|||
Truncate = true,
|
||||
EllipsisString = ".. :",
|
||||
Font = OsuFont.GetFont(size: TextSize, weight: FontWeight.Bold, italics: true),
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Anchor = Anchor.TopRight,
|
||||
Origin = Anchor.TopRight,
|
||||
MaxWidth = default_message_padding - timestamp_padding
|
||||
};
|
||||
|
||||
if (hasBackground)
|
||||
|
|
Loading…
Reference in New Issue