diff --git a/Cargo.lock b/Cargo.lock
index 7d6abb7..b96bf1d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1733,7 +1733,7 @@ dependencies = [
[[package]]
name = "hacker-news-iced"
-version = "0.1.5"
+version = "0.1.6"
dependencies = [
"anyhow",
"app_dirs2",
diff --git a/assets/Info.plist b/assets/Info.plist
index 2724c55..fafe943 100644
--- a/assets/Info.plist
+++ b/assets/Info.plist
@@ -19,7 +19,7 @@
CFBundlePackageType
APPL
CFBundleShortVersionString
- 0.0.1
+ 0.1.6
LSApplicationCategoryType
public.app-category.games
LSMinimumSystemVersion
diff --git a/assets/io.github.darrellroberts.hacker-news.metainfo.xml b/assets/io.github.darrellroberts.hacker-news.metainfo.xml
index 1ec9423..6e359ff 100644
--- a/assets/io.github.darrellroberts.hacker-news.metainfo.xml
+++ b/assets/io.github.darrellroberts.hacker-news.metainfo.xml
@@ -10,6 +10,8 @@
News
+ Network
+ Internet
@@ -31,6 +33,7 @@
>io.github.darrellroberts.hacker-news.desktop
+
diff --git a/hacker-news-iced/Cargo.toml b/hacker-news-iced/Cargo.toml
index 273e936..34b05ad 100644
--- a/hacker-news-iced/Cargo.toml
+++ b/hacker-news-iced/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hacker-news-iced"
-version = "0.1.5"
+version = "0.1.6"
license.workspace = true
edition.workspace = true
description = "Hacker News Desktop Reader"
diff --git a/hacker-news-iced/src/full_search.rs b/hacker-news-iced/src/full_search.rs
index 5bf3000..046a1ce 100644
--- a/hacker-news-iced/src/full_search.rs
+++ b/hacker-news-iced/src/full_search.rs
@@ -69,7 +69,7 @@ impl FullSearchState {
widget::container(widget::Column::with_children(comment_rows).spacing(15))
.padding(padding::top(0).bottom(10).left(10).right(25)),
)
- .id(widget::scrollable::Id::new("full_search")),
+ .id(full_search_scroll_id()),
)
.spacing(5);
@@ -260,8 +260,12 @@ impl FullSearchState {
.map(AppMsg::FullSearch)
}
},
- None => todo!(),
+ None => Task::none(),
}
+ .chain(widget::scrollable::scroll_to(
+ full_search_scroll_id(),
+ Default::default(),
+ ))
}
}
@@ -286,3 +290,7 @@ impl PaginatingView for FullSearchState {
self.page
}
}
+
+fn full_search_scroll_id() -> widget::scrollable::Id {
+ widget::scrollable::Id::new("full_search")
+}