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
This commit is contained in:
Alejandro Fernández Gómez 2025-06-30 17:16:01 +02:00 committed by GitHub
parent e5a8cc7aab
commit 465f64da7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,7 +7,7 @@ use svg_preview::{
OpenPreview as SvgOpenPreview, OpenPreviewToTheSide as SvgOpenPreviewToTheSide, OpenPreview as SvgOpenPreview, OpenPreviewToTheSide as SvgOpenPreviewToTheSide,
svg_preview_view::SvgPreviewView, svg_preview_view::SvgPreviewView,
}; };
use ui::{IconButtonShape, Tooltip, prelude::*, text_for_keystroke}; use ui::{Tooltip, prelude::*, text_for_keystroke};
use workspace::Workspace; use workspace::Workspace;
use super::QuickActionBar; use super::QuickActionBar;
@ -66,7 +66,6 @@ impl QuickActionBar {
}; };
let button = IconButton::new(button_id, IconName::Eye) let button = IconButton::new(button_id, IconName::Eye)
.shape(IconButtonShape::Square)
.icon_size(IconSize::Small) .icon_size(IconSize::Small)
.style(ButtonStyle::Subtle) .style(ButtonStyle::Subtle)
.tooltip(move |window, cx| { .tooltip(move |window, cx| {