Prevent tab bar from growing in height when a tab is added
This commit is contained in:
parent
11c16258eb
commit
7dc22fef24
1 changed files with 6 additions and 2 deletions
|
@ -7,7 +7,7 @@ use crate::{
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use collections::{HashMap, HashSet, VecDeque};
|
use collections::{HashMap, HashSet, VecDeque};
|
||||||
use gpui::{
|
use gpui::{
|
||||||
actions, overlay, prelude::*, Action, AnchorCorner, AnyWeakView, AppContext,
|
actions, overlay, prelude::*, rems, Action, AnchorCorner, AnyWeakView, AppContext,
|
||||||
AsyncWindowContext, DismissEvent, Div, EntityId, EventEmitter, FocusHandle, Focusable,
|
AsyncWindowContext, DismissEvent, Div, EntityId, EventEmitter, FocusHandle, Focusable,
|
||||||
FocusableView, Model, Pixels, Point, PromptLevel, Render, Task, View, ViewContext,
|
FocusableView, Model, Pixels, Point, PromptLevel, Render, Task, View, ViewContext,
|
||||||
VisualContext, WeakView, WindowContext,
|
VisualContext, WeakView, WindowContext,
|
||||||
|
@ -1556,11 +1556,15 @@ impl Pane {
|
||||||
|
|
||||||
fn render_tab_bar(&mut self, cx: &mut ViewContext<'_, Pane>) -> impl IntoElement {
|
fn render_tab_bar(&mut self, cx: &mut ViewContext<'_, Pane>) -> impl IntoElement {
|
||||||
div()
|
div()
|
||||||
.group("tab_bar")
|
|
||||||
.id("tab_bar")
|
.id("tab_bar")
|
||||||
|
.group("tab_bar")
|
||||||
.track_focus(&self.tab_bar_focus_handle)
|
.track_focus(&self.tab_bar_focus_handle)
|
||||||
.w_full()
|
.w_full()
|
||||||
|
// 30px @ 16px/rem
|
||||||
|
.h(rems(1.875))
|
||||||
|
.overflow_hidden()
|
||||||
.flex()
|
.flex()
|
||||||
|
.flex_none()
|
||||||
.bg(cx.theme().colors().tab_bar_background)
|
.bg(cx.theme().colors().tab_bar_background)
|
||||||
// Left Side
|
// Left Side
|
||||||
.child(
|
.child(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue