Skip to content

Commit 17104f7

Browse files
committed
fix(search): update on_change_filter callback type to match expected tuple format
fix(text): adjust mobile font size for text-h1 to improve responsiveness fix(theme): update desktop breakpoint to 640px for consistency across styles
1 parent 9eefa71 commit 17104f7

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

crates/leptos/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "leptos-components"
33
description = "RustLangES leptos components"
4-
version = "0.1.1"
4+
version = "0.1.2"
55
edition = "2024"
66
license = "MIT"
77

crates/leptos/src/input/search.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub struct Filter {
1515
pub fn InputSearch(
1616
#[prop(into, optional)] filters: Option<Vec<Filter>>,
1717
#[prop(into, optional)] active_filters: Vec<Filter>,
18-
#[prop(into)] on_change_filter: Callback<Vec<Filter>, ()>,
18+
#[prop(into)] on_change_filter: Callback<(Vec<Filter>,), ()>,
1919
) -> impl IntoView {
2020
let (filter_modal, set_filter_modal) = signal(false);
2121
let has_filter = filters.as_ref().map_or(false, |f| !f.is_empty());
@@ -27,14 +27,14 @@ pub fn InputSearch(
2727
if !is_selected {
2828
let mut new_filters = active_filters.clone();
2929
new_filters.push(filter);
30-
on_change_filter.run(new_filters);
30+
on_change_filter.run((new_filters,));
3131
} else {
3232
let new_filters = active_filters
3333
.iter()
3434
.filter(|f| f.value != filter.value)
3535
.cloned()
3636
.collect();
37-
on_change_filter.run(new_filters);
37+
on_change_filter.run((new_filters,));
3838
}
3939
}
4040
};

styles/components/text.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
line-height: 160%;
9393
letter-spacing: 0.28%;
9494

95-
@apply desktop:text-[16px];
95+
@apply mobile:text-[14px] desktop:text-[16px];
9696
}
9797

9898
.text-caption {

styles/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@rustlanges/styles",
33
"private": false,
4-
"version": "0.0.2",
4+
"version": "0.0.3",
55
"type": "module",
66
"exports": {
77
".": "./tailwindcss.css",

styles/theme.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@theme static {
22
/* ----- Breakpoints ----- */
3-
--breakpoint-desktop: 360px;
3+
--breakpoint-desktop: 640px;
44

55
/* ------ Colors ------ */
66
--color-primary-50: #fff6ed;

0 commit comments

Comments
 (0)