git: Fix git commit font fallbacks (#26184)

0x2CA created

Closes #ISSUE

Release Notes:

- Fixed git commit font_fallbacks

Change summary

crates/panel/src/panel.rs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

Detailed changes

crates/panel/src/panel.rs 🔗

@@ -84,9 +84,10 @@ pub fn panel_editor_style(monospace: bool, window: &Window, cx: &App) -> EditorS
 
     let font_size = TextSize::Small.rems(cx).to_pixels(window.rem_size());
 
-    let (font_family, font_features, font_weight, line_height) = if monospace {
+    let (font_family, font_fallbacks, font_features, font_weight, line_height) = if monospace {
         (
             settings.buffer_font.family.clone(),
+            settings.buffer_font.fallbacks.clone(),
             settings.buffer_font.features.clone(),
             settings.buffer_font.weight,
             font_size * settings.buffer_line_height.value(),
@@ -94,6 +95,7 @@ pub fn panel_editor_style(monospace: bool, window: &Window, cx: &App) -> EditorS
     } else {
         (
             settings.ui_font.family.clone(),
+            settings.ui_font.fallbacks.clone(),
             settings.ui_font.features.clone(),
             settings.ui_font.weight,
             window.line_height(),
@@ -106,6 +108,7 @@ pub fn panel_editor_style(monospace: bool, window: &Window, cx: &App) -> EditorS
         text: TextStyle {
             color: cx.theme().colors().text,
             font_family,
+            font_fallbacks,
             font_features,
             font_size: TextSize::Small.rems(cx).into(),
             font_weight,