From 03826be19669661f8ad2fa62b3206f424baef230 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 18 Jan 2024 22:52:30 -0500 Subject: [PATCH] Fix docs references in `ui` (#4147) This PR fixes some more references in the docs in the `ui` crate. Release Notes: - N/A --- crates/ui/src/components/avatar/avatar.rs | 2 +- .../ui/src/components/avatar/avatar_availability_indicator.rs | 2 +- crates/ui/src/components/popover.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ui/src/components/avatar/avatar.rs b/crates/ui/src/components/avatar/avatar.rs index 932cc9e243..54f5557e35 100644 --- a/crates/ui/src/components/avatar/avatar.rs +++ b/crates/ui/src/components/avatar/avatar.rs @@ -44,7 +44,7 @@ impl Avatar { /// Sets the shape of the avatar image. /// - /// This method allows the shape of the avatar to be specified using a [`Shape`]. + /// This method allows the shape of the avatar to be specified using an [`AvatarShape`]. /// It modifies the corner radius of the image to match the specified shape. /// /// # Examples diff --git a/crates/ui/src/components/avatar/avatar_availability_indicator.rs b/crates/ui/src/components/avatar/avatar_availability_indicator.rs index 3a033cd395..3e4f9b2d1b 100644 --- a/crates/ui/src/components/avatar/avatar_availability_indicator.rs +++ b/crates/ui/src/components/avatar/avatar_availability_indicator.rs @@ -20,7 +20,7 @@ impl AvatarAvailabilityIndicator { } } - /// Sets the size of the [`Avatar`] this indicator appears on. + /// Sets the size of the [`Avatar`](crate::Avatar) this indicator appears on. pub fn avatar_size(mut self, size: impl Into>) -> Self { self.avatar_size = size.into(); self diff --git a/crates/ui/src/components/popover.rs b/crates/ui/src/components/popover.rs index ad72a1d9b6..3ef692e862 100644 --- a/crates/ui/src/components/popover.rs +++ b/crates/ui/src/components/popover.rs @@ -16,7 +16,7 @@ use smallvec::SmallVec; /// /// Related elements: /// -/// `ContextMenu`: +/// [`ContextMenu`](crate::ContextMenu): /// /// Used to display a popover menu that only contains a list of items. Context menus are always /// launched by secondary clicking on an element. The menu is positioned relative to the user's cursor.