mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-23 06:19: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]
|
[package]
|
||||||
name = "melt-ui"
|
name = "melt-ui"
|
||||||
version = "0.0.4"
|
version = "0.0.5"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
keywords = ["web", "leptos", "ui", "melt-ui"]
|
keywords = ["web", "leptos", "ui", "melt-ui"]
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ pub fn AutoComplete(
|
||||||
.get_bounding_client_rect();
|
.get_bounding_client_rect();
|
||||||
|
|
||||||
let auto_complete_menu = auto_complete_menu_ref.get_untracked().unwrap();
|
let auto_complete_menu = auto_complete_menu_ref.get_untracked().unwrap();
|
||||||
auto_complete_menu
|
_ = auto_complete_menu
|
||||||
.style("width", format!("{}px", rect.width()))
|
.style("width", format!("{}px", rect.width()))
|
||||||
.style(
|
.style(
|
||||||
"transform",
|
"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();
|
let rect = trigger_ref.get().unwrap().get_bounding_client_rect();
|
||||||
is_show_popover.set(true);
|
is_show_popover.set(true);
|
||||||
if let Some(popover_ref) = popover_ref.get() {
|
if let Some(popover_ref) = popover_ref.get() {
|
||||||
popover_ref.style(
|
_ = popover_ref.style(
|
||||||
"transform",
|
"transform",
|
||||||
format!(
|
format!(
|
||||||
"translateX({}px) translateY({}px)",
|
"translateX({}px) translateY({}px)",
|
||||||
|
|
|
@ -74,7 +74,7 @@ where
|
||||||
let rect = trigger_ref.get().unwrap().get_bounding_client_rect();
|
let rect = trigger_ref.get().unwrap().get_bounding_client_rect();
|
||||||
is_show_menu.set(true);
|
is_show_menu.set(true);
|
||||||
if let Some(menu_ref) = menu_ref.get() {
|
if let Some(menu_ref) = menu_ref.get() {
|
||||||
menu_ref
|
_ = menu_ref
|
||||||
.style("width", format!("{}px", rect.width()))
|
.style("width", format!("{}px", rect.width()))
|
||||||
.style(
|
.style(
|
||||||
"transform",
|
"transform",
|
||||||
|
|
|
@ -7,7 +7,7 @@ pub fn Wave(children: Children) -> impl IntoView {
|
||||||
let (css_vars, set_css_vars) = create_signal(String::new());
|
let (css_vars, set_css_vars) = create_signal(String::new());
|
||||||
let wave_ref = create_node_ref::<html::Div>();
|
let wave_ref = create_node_ref::<html::Div>();
|
||||||
wave_ref.on_load(move |wave| {
|
wave_ref.on_load(move |wave| {
|
||||||
wave.on(ev::mousedown, move |ev| {
|
_ = wave.on(ev::mousedown, move |ev| {
|
||||||
wave_ref.on_load(move |wave| {
|
wave_ref.on_load(move |wave| {
|
||||||
let rect = wave.get_bounding_client_rect();
|
let rect = wave.get_bounding_client_rect();
|
||||||
let client_x = f64::from(ev.client_x());
|
let client_x = f64::from(ev.client_x());
|
||||||
|
|
Loading…
Add table
Reference in a new issue