Skip to content

A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.

fix(library): add top spacing in fullscreen and on non-macOS platforms

RoversXda9c524de92f
diff --git a/wezterm-gui/src/termwindow/ui/library.rs b/wezterm-gui/src/termwindow/ui/library.rs
index 4252d0bd..c11e64e7 100644
--- a/wezterm-gui/src/termwindow/ui/library.rs
+++ b/wezterm-gui/src/termwindow/ui/library.rs
@@ -974,7 +974,14 @@ impl crate::TermWindow {
let height = (self.dimensions.pixel_height as f32 - top - border.bottom.get() as f32).max(1.0);
let width = self.library_shown_width();
let rail = self.ui_f32(RAIL_WIDTH);
- let title_y = self.workspace_sidebar_content_top(top as usize) as f32;
+ let title_y = self.workspace_sidebar_content_top(top as usize) as f32
+ + if !cfg!(target_os = "macos")
+ || self.window_state.contains(window::WindowState::FULL_SCREEN)
+ {
+ self.ui_f32(24.0)
+ } else {
+ 0.0
+ };
let cards_top = title_y + self.ui_f32(TITLE_HEIGHT) + self.ui_f32(16.0);
let cards = euclid::rect(
left + rail,