Skip to content

Reduce the size of battlefield news when messages are short#21672

Merged
penev92 merged 1 commit into
OpenRA:bleedfrom
PunkPun:fix-battlefield-news
Dec 19, 2024
Merged

Reduce the size of battlefield news when messages are short#21672
penev92 merged 1 commit into
OpenRA:bleedfrom
PunkPun:fix-battlefield-news

Conversation

@PunkPun

@PunkPun PunkPun commented Dec 10, 2024

Copy link
Copy Markdown
Member

Bleed

Screenshot 2024-12-10 at 23 43 33 Screenshot 2024-12-10 at 22 52 44

Suggested

Screenshot 2024-12-10 at 23 39 25 Screenshot 2024-12-10 at 23 36 37 Screenshot 2024-12-10 at 23 42 09 Screenshot 2024-12-10 at 23 42 50

@penev92 penev92 added this to the Next Release milestone Dec 11, 2024
@penev92

penev92 commented Dec 11, 2024

Copy link
Copy Markdown
Member

Top spacing seems to be bigger than the bottom spacing. Feels like it should have some more at the bottom.
Other than that I'm sold 👍

@PunkPun

PunkPun commented Dec 11, 2024

Copy link
Copy Markdown
Member Author

that's an optical illusion. I dunno what is the cleanest way to address it apart from rewriting out box model

@penev92

penev92 commented Dec 18, 2024

Copy link
Copy Markdown
Member

I think something as simple as

-newsPanel.Bounds.Height = Math.Min(newsPanel.ContentHeight, maxNewsHeight);
+newsPanel.Bounds.Height = Math.Min(newsPanel.ContentHeight + 5, maxNewsHeight);

makes it look better (despite not being the greatest solution out there).
The text is still not aligned horizontally though, so I may be overthinking it
image

@PunkPun
PunkPun force-pushed the fix-battlefield-news branch from 5ec8b68 to 37fffc2 Compare December 19, 2024 15:35

@penev92 penev92 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, not an important deal anyway.

@penev92
penev92 merged commit 2a1eeae into OpenRA:bleed Dec 19, 2024
@penev92

penev92 commented Dec 19, 2024

Copy link
Copy Markdown
Member

Changelog

prep-2411 commit

@PunkPun
PunkPun deleted the fix-battlefield-news branch December 19, 2024 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants