Add a min width for the ChatPanel
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
f0775aeebc
commit
e9d50159ee
1 changed files with 15 additions and 11 deletions
|
@ -313,6 +313,7 @@ impl View for ChatPanel {
|
||||||
|
|
||||||
fn render(&mut self, _: &mut RenderContext<Self>) -> ElementBox {
|
fn render(&mut self, _: &mut RenderContext<Self>) -> ElementBox {
|
||||||
let theme = &self.settings.borrow().theme;
|
let theme = &self.settings.borrow().theme;
|
||||||
|
ConstrainedBox::new(
|
||||||
Container::new(
|
Container::new(
|
||||||
Flex::column()
|
Flex::column()
|
||||||
.with_child(
|
.with_child(
|
||||||
|
@ -325,6 +326,9 @@ impl View for ChatPanel {
|
||||||
.boxed(),
|
.boxed(),
|
||||||
)
|
)
|
||||||
.with_style(&theme.chat_panel.container)
|
.with_style(&theme.chat_panel.container)
|
||||||
|
.boxed(),
|
||||||
|
)
|
||||||
|
.with_min_width(150.)
|
||||||
.boxed()
|
.boxed()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue