Follow-up to https://github.com/zed-industries/zed/pull/27791 Release Notes: - N/A
16 lines
311 B
Rust
16 lines
311 B
Rust
use gpui::{Div, div};
|
|
|
|
use crate::StyledExt;
|
|
|
|
/// Horizontally stacks elements. Sets `flex()`, `flex_row()`, `items_center()`
|
|
#[track_caller]
|
|
pub fn h_flex() -> Div {
|
|
div().h_flex()
|
|
}
|
|
|
|
/// Vertically stacks elements. Sets `flex()`, `flex_col()`
|
|
#[track_caller]
|
|
pub fn v_flex() -> Div {
|
|
div().v_flex()
|
|
}
|