mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-22 22:09:22 -05:00
v0.0.5
This commit is contained in:
parent
cf18b488db
commit
4597b823e7
5 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "melt-ui"
|
||||
version = "0.0.4"
|
||||
version = "0.0.5"
|
||||
edition = "2021"
|
||||
keywords = ["web", "leptos", "ui", "melt-ui"]
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ pub fn AutoComplete(
|
|||
.get_bounding_client_rect();
|
||||
|
||||
let auto_complete_menu = auto_complete_menu_ref.get_untracked().unwrap();
|
||||
auto_complete_menu
|
||||
_ = auto_complete_menu
|
||||
.style("width", format!("{}px", rect.width()))
|
||||
.style(
|
||||
"transform",
|
||||
|
|
|
@ -68,7 +68,7 @@ pub fn ColorPicker(#[prop(optional, into)] value: MaybeRwSignal<RGBA>) -> impl I
|
|||
let rect = trigger_ref.get().unwrap().get_bounding_client_rect();
|
||||
is_show_popover.set(true);
|
||||
if let Some(popover_ref) = popover_ref.get() {
|
||||
popover_ref.style(
|
||||
_ = popover_ref.style(
|
||||
"transform",
|
||||
format!(
|
||||
"translateX({}px) translateY({}px)",
|
||||
|
|
|
@ -74,7 +74,7 @@ where
|
|||
let rect = trigger_ref.get().unwrap().get_bounding_client_rect();
|
||||
is_show_menu.set(true);
|
||||
if let Some(menu_ref) = menu_ref.get() {
|
||||
menu_ref
|
||||
_ = menu_ref
|
||||
.style("width", format!("{}px", rect.width()))
|
||||
.style(
|
||||
"transform",
|
||||
|
|
|
@ -7,7 +7,7 @@ pub fn Wave(children: Children) -> impl IntoView {
|
|||
let (css_vars, set_css_vars) = create_signal(String::new());
|
||||
let wave_ref = create_node_ref::<html::Div>();
|
||||
wave_ref.on_load(move |wave| {
|
||||
wave.on(ev::mousedown, move |ev| {
|
||||
_ = wave.on(ev::mousedown, move |ev| {
|
||||
wave_ref.on_load(move |wave| {
|
||||
let rect = wave.get_bounding_client_rect();
|
||||
let client_x = f64::from(ev.client_x());
|
||||
|
|
Loading…
Add table
Reference in a new issue