Skip to content

Commit

Permalink
feat: Ajust the custom layers of some built-in-components (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 authored Sep 28, 2024
1 parent ffca92a commit f916a9a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/components/src/dropdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ where
rect {
onglobalclick,
onglobalkeydown,
layer: "-99",
layer: "-1000",
margin: "{margin}",
border: "1 solid {border_fill}",
overflow: "clip",
Expand Down
2 changes: 1 addition & 1 deletion crates/components/src/popup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub fn PopupBackground(children: Element) -> Element {
position: "absolute",
position_top: "0",
position_left: "0",
layer: "-99",
layer: "-2000",
main_align: "center",
cross_align: "center",
{children}
Expand Down
1 change: 1 addition & 0 deletions crates/components/src/snackbar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ pub fn SnackBarBox(children: Element, theme: Option<SnackBarThemeWith>) -> Eleme
padding: "10",
color: "{color}",
direction: "horizontal",
layer: "-1000",
{children}
}
)
Expand Down
2 changes: 1 addition & 1 deletion crates/components/src/tooltip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pub fn TooltipContainer(
rect {
height: "0",
width: "0",
layer: "-999",
layer: "-1500",
match position {
TooltipPosition::Below => rsx!(
rect {
Expand Down

0 comments on commit f916a9a

Please sign in to comment.