Update tabs rendering, fix tab spacing bug

Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
This commit is contained in:
Nate Butler 2023-12-05 14:04:12 -05:00
parent dccdcd3221
commit 27703a3279
4 changed files with 113 additions and 115 deletions

View file

@ -1,4 +1,4 @@
use gpui::{AnyView, Div, Position};
use gpui::{Div, Position};
use crate::prelude::*;
@ -49,6 +49,7 @@ impl RenderOnce for Indicator {
fn render(self, cx: &mut WindowContext) -> Self::Rendered {
div()
.flex_none()
.map(|this| match self.style {
IndicatorStyle::Dot => this.w_1p5().h_1p5().rounded_full(),
IndicatorStyle::Bar => this.w_full().h_1p5().rounded_t_md(),