Update Dropdown icon to ChevronsUpDown

This commit is contained in:
Jason Lee 2024-06-28 10:19:24 +08:00
parent e0050c5ebe
commit 5393580789
3 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevrons-up-down">
<path d="m7 15 5 5 5-5"/>
<path d="m7 9 5-5 5 5"/>
</svg>

After

Width:  |  Height:  |  Size: 282 B

View file

@ -237,7 +237,7 @@ where
.items_center()
.justify_between()
.child(div().flex_1().child(title))
.child(div().w_4().h_4().child(IconName::ChevronDown)),
.child(div().w_4().h_4().child(IconName::ChevronsUpDown)),
),
)
.when(self.open, |this| {

View file

@ -11,6 +11,7 @@ pub enum IconName {
Minimize,
Close,
ChevronDown,
ChevronsUpDown,
}
impl IconName {
@ -23,6 +24,7 @@ impl IconName {
IconName::Minimize => "icons/minimize.svg",
IconName::Close => "icons/close.svg",
IconName::ChevronDown => "icons/chevron-down.svg",
IconName::ChevronsUpDown => "icons/chevrons-up-down.svg",
}
.into()
}