Skip to content

Add padding to new text in ui example#12567

Merged
mockersf merged 2 commits intobevyengine:mainfrom
rparrett:ui-example-padding
Mar 26, 2024
Merged

Add padding to new text in ui example#12567
mockersf merged 2 commits intobevyengine:mainfrom
rparrett:ui-example-padding

Conversation

@rparrett
Copy link
Contributor

@rparrett rparrett commented Mar 19, 2024

Objective

#11237 added some new text to the UI example. Unlike the other text sharing the same container just above, this new text has no padding and straddles the edge of the screen.

Solution

Move the padding to the container, and add row_gap so nodes placed in the container get some vertical separation as well.

Before / After
12567-before (1) 12567-after

@pablo-lua pablo-lua added C-Examples An addition or correction to our examples A-UI Graphical user interfaces, styles, layouts, and widgets labels Mar 19, 2024
@matiqo15 matiqo15 added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Mar 26, 2024
@mockersf mockersf added this pull request to the merge queue Mar 26, 2024
Merged via the queue into bevyengine:main with commit 4edd782 Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-UI Graphical user interfaces, styles, layouts, and widgets C-Examples An addition or correction to our examples S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants