use gpui::{Pixels, px};
pub struct SearchInputWidth;
impl SearchInputWidth {
pub const THRESHOLD_WIDTH: Pixels = px(1200.0);
pub const MAX_WIDTH: Pixels = px(1200.0);
pub fn calc_width(container_width: Pixels) -> Pixels {
if container_width < Self::THRESHOLD_WIDTH {
container_width
} else {
container_width.min(Self::MAX_WIDTH)
}
}
}