fix: Center UI button content
This commit is contained in:
@@ -37,8 +37,6 @@ fn setup(mut commands: Commands) {
|
||||
ButtonVariant::Primary,
|
||||
Node {
|
||||
width: px(280),
|
||||
justify_content: JustifyContent::Center,
|
||||
align_items: AlignItems::Center,
|
||||
padding: UiRect::all(px(10)),
|
||||
..default()
|
||||
},
|
||||
@@ -50,8 +48,6 @@ fn setup(mut commands: Commands) {
|
||||
ButtonVariant::Primary,
|
||||
Node {
|
||||
width: px(280),
|
||||
justify_content: JustifyContent::Center,
|
||||
align_items: AlignItems::Center,
|
||||
padding: UiRect::all(px(10)),
|
||||
..default()
|
||||
},
|
||||
@@ -63,8 +59,6 @@ fn setup(mut commands: Commands) {
|
||||
ButtonVariant::Secondary,
|
||||
Node {
|
||||
width: px(280),
|
||||
justify_content: JustifyContent::Center,
|
||||
align_items: AlignItems::Center,
|
||||
padding: UiRect::all(px(10)),
|
||||
..default()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user