Use buffer font size for editor overlays and blocks

Co-authored-by: Nathan <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2024-01-02 15:55:56 -08:00
co-authored by Nathan
parent 850a9e33e3
commit 4b006ccd5b
3 changed files with 52 additions and 42 deletions
-3
View File
@@ -1195,7 +1195,6 @@ impl CompletionsMenu {
.min_w(px(260.))
.max_w(px(640.))
.w(px(500.))
.text_ui()
.overflow_y_scroll()
// Prevent a mouse down on documentation from being propagated to the editor,
// because that would move the cursor.
@@ -1251,7 +1250,6 @@ impl CompletionsMenu {
.max_w(px(540.))
.whitespace_nowrap()
.overflow_hidden()
.text_ui()
.px_1()
.rounded(px(4.))
.bg(cx.theme().colors().ghost_element_background)
@@ -1425,7 +1423,6 @@ impl CodeActionsMenu {
let colors = cx.theme().colors();
div()
.px_2()
.text_ui()
.text_color(colors.text)
.when(selected, |style| {
style