Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Center text on welcome screen (#3699)

Marshall Bowers98f5a3d544a6
diff --git a/crates/welcome2/src/welcome.rs b/crates/welcome2/src/welcome.rs
index c553a04fc7b..91620595ce5 100644
--- a/crates/welcome2/src/welcome.rs
+++ b/crates/welcome2/src/welcome.rs
@@ -74,7 +74,11 @@ impl Render for WelcomePage {
.h(px(96.))
.mx_auto(),
)
- .child(Label::new("Code at the speed of thought"))
+ .child(
+ h_stack()
+ .justify_center()
+ .child(Label::new("Code at the speed of thought")),
+ )
.child(
v_stack()
.gap_2()