Skip to content

Commit

Permalink
[*] fix news-list jitter when scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
Heng30 committed Jan 15, 2024
1 parent 06e07ea commit fed1e84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpnews/src/news.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub fn fetch_cryptocompare() -> Result<Vec<NewsItem>> {
let words: Vec<&str> = v.split_whitespace().collect();
if words.len() > 100 {
let v = words.into_iter().take(100).collect::<Vec<_>>().join(" ");
format!("{v}...)
format!("{v}...")
} else {
v.clone()
}
Expand Down
2 changes: 1 addition & 1 deletion cpnews/src/version.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pub const VERSION: &str = "v0.0.3";
pub const VERSION: &str = "v0.0.4";

0 comments on commit fed1e84

Please sign in to comment.