Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

ui: Render disclosures with `IconButtonShape::Square` (#13004)

Marshall Bowers702fd8f168be
diff --git a/crates/ui/src/components/disclosure.rs b/crates/ui/src/components/disclosure.rs
index fa6122273dc..3223a2d57c5 100644
--- a/crates/ui/src/components/disclosure.rs
+++ b/crates/ui/src/components/disclosure.rs
@@ -2,7 +2,7 @@ use std::sync::Arc;
use gpui::ClickEvent;
-use crate::{prelude::*, Color, IconButton, IconName, IconSize};
+use crate::{prelude::*, Color, IconButton, IconButtonShape, IconName, IconSize};
#[derive(IntoElement)]
pub struct Disclosure {
@@ -38,6 +38,7 @@ impl RenderOnce for Disclosure {
false => IconName::ChevronRight,
},
)
+ .shape(IconButtonShape::Square)
.icon_color(Color::Muted)
.icon_size(IconSize::Small)
.when_some(self.on_toggle, move |this, on_toggle| {