Update Dropdown icon to ChevronsUpDown
This commit is contained in:
parent
e0050c5ebe
commit
5393580789
3 changed files with 7 additions and 1 deletions
4
assets/icons/chevrons-up-down.svg
Normal file
4
assets/icons/chevrons-up-down.svg
Normal 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 |
|
|
@ -237,7 +237,7 @@ where
|
||||||
.items_center()
|
.items_center()
|
||||||
.justify_between()
|
.justify_between()
|
||||||
.child(div().flex_1().child(title))
|
.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| {
|
.when(self.open, |this| {
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ pub enum IconName {
|
||||||
Minimize,
|
Minimize,
|
||||||
Close,
|
Close,
|
||||||
ChevronDown,
|
ChevronDown,
|
||||||
|
ChevronsUpDown,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl IconName {
|
impl IconName {
|
||||||
|
|
@ -23,6 +24,7 @@ impl IconName {
|
||||||
IconName::Minimize => "icons/minimize.svg",
|
IconName::Minimize => "icons/minimize.svg",
|
||||||
IconName::Close => "icons/close.svg",
|
IconName::Close => "icons/close.svg",
|
||||||
IconName::ChevronDown => "icons/chevron-down.svg",
|
IconName::ChevronDown => "icons/chevron-down.svg",
|
||||||
|
IconName::ChevronsUpDown => "icons/chevrons-up-down.svg",
|
||||||
}
|
}
|
||||||
.into()
|
.into()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue