mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 11:11:30 +00:00
17 lines
297 B
Rust
17 lines
297 B
Rust
use gpui::{div, Div};
|
|
|
|
use crate::StyledExt;
|
|
|
|
/// Horizontally stacks elements.
|
|
///
|
|
/// Sets `flex()`, `flex_row()`, `items_center()`
|
|
pub fn h_stack() -> Div {
|
|
div().h_flex()
|
|
}
|
|
|
|
/// Vertically stacks elements.
|
|
///
|
|
/// Sets `flex()`, `flex_col()`
|
|
pub fn v_stack() -> Div {
|
|
div().v_flex()
|
|
}
|