Reduce the size of battlefield news when messages are short

(cherry picked from commit 2a1eeae7ca55e814a8a648b7306648d6585a26c3)
This commit is contained in:
Gustas
2024-12-10 23:43:17 +02:00
committed by Pavel Penev
parent 5edca87622
commit 5f6eecc1f6
5 changed files with 24 additions and 31 deletions

View File

@@ -152,32 +152,30 @@ ScrollPanel@SPECTATOR_LABEL_DROPDOWN_TEMPLATE:
ScrollPanel@NEWS_PANEL:
Width: 400
Height: 265
TopBottomSpacing: 5
TopBottomSpacing: 15
ItemSpacing: 5
Children:
Container@NEWS_ITEM_TEMPLATE:
X: 10
Y: 5
Width: PARENT_WIDTH - 40
Height: 45
Height: 40
Children:
Label@TITLE:
Width: PARENT_WIDTH
Height: 25
Height: 15
Align: Center
Font: Bold
Label@AUTHOR_DATETIME:
Y: 25
Y: 20
Width: PARENT_WIDTH
Height: 15
Align: Center
Font: TinyBold
Label@CONTENT:
Y: 45
Y: 40
Width: PARENT_WIDTH
Label@NEWS_STATUS:
X: 80
Y: 0
Width: PARENT_WIDTH - 80 - 80 - 24
Height: PARENT_HEIGHT
Align: Center