diff --git a/crates/ui/src/description_list.rs b/crates/ui/src/description_list.rs index 2cdd93f6..53c0fb12 100644 --- a/crates/ui/src/description_list.rs +++ b/crates/ui/src/description_list.rs @@ -140,8 +140,8 @@ impl DescriptionList { /// Set the width of the label, only works for horizontal layout. /// /// Default is `120px`. - pub fn label_width(mut self, label_width: DefiniteLength) -> Self { - self.label_width = label_width; + pub fn label_width(mut self, label_width: impl Into) -> Self { + self.label_width = label_width.into(); self }