From 465f64da7e116c9197edae5cedec52b07e6db3d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Fern=C3=A1ndez=20G=C3=B3mez?= Date: Mon, 30 Jun 2025 17:16:01 +0200 Subject: [PATCH] Make the preview button the same as the other buttons (#33658) This fixes a tiny visual defect I noticed today. The "Preview" button is slightly smaller and has less padding than the other buttons in the quick action bar. **Before:** Note how there is a small gap between the black guides and the button. https://github.com/user-attachments/assets/04d3d83a-9193-47b1-80d8-94a5d1fbd750 **After:** https://github.com/user-attachments/assets/98f878cc-c5e3-491c-abe9-9ef0d5cf678a Release Notes: - N/A --- crates/zed/src/zed/quick_action_bar/preview.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/zed/src/zed/quick_action_bar/preview.rs b/crates/zed/src/zed/quick_action_bar/preview.rs index 57775d31fd..3772104f39 100644 --- a/crates/zed/src/zed/quick_action_bar/preview.rs +++ b/crates/zed/src/zed/quick_action_bar/preview.rs @@ -7,7 +7,7 @@ use svg_preview::{ OpenPreview as SvgOpenPreview, OpenPreviewToTheSide as SvgOpenPreviewToTheSide, svg_preview_view::SvgPreviewView, }; -use ui::{IconButtonShape, Tooltip, prelude::*, text_for_keystroke}; +use ui::{Tooltip, prelude::*, text_for_keystroke}; use workspace::Workspace; use super::QuickActionBar; @@ -66,7 +66,6 @@ impl QuickActionBar { }; let button = IconButton::new(button_id, IconName::Eye) - .shape(IconButtonShape::Square) .icon_size(IconSize::Small) .style(ButtonStyle::Subtle) .tooltip(move |window, cx| {