Fix project and buffer search input width (#21949)

Closes https://github.com/zed-industries/zed/issues/21922

Now, both the project and buffer search inputs have a min-width set so
that text inside it, as well as the additional controls, are always
visible even at the window's smallest possible size, which looks like
this:

<img width="407" alt="Screenshot 2024-12-13 at 00 35 46"
src="https://github.com/user-attachments/assets/e6e2c4c6-4f75-4663-8c65-590e02141a5d"
/>


Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2024-12-13 00:51:51 -03:00 committed by GitHub
parent 9f0f63f92b
commit 6ceec5d9a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -209,6 +209,7 @@ impl Render for BufferSearchBar {
let input_base_styles = || {
h_flex()
.min_w_32()
.w(input_width)
.h_8()
.px_2()

View file

@ -1595,6 +1595,7 @@ impl Render for ProjectSearchBar {
let input_base_styles = || {
h_flex()
.min_w_32()
.w(input_width)
.h_8()
.px_2()