Compare commits

..

No commits in common. "9f63205ff361a1eb9cb92dcc8a85745a3c04c5e4" and "147896dc801dad31197da3bd46dff8e4a8e769cd" have entirely different histories.

6 changed files with 14 additions and 35 deletions

10
Cargo.lock generated
View File

@ -3001,7 +3001,7 @@ dependencies = [
[[package]]
name = "letterbox-notmuch"
version = "0.10.12"
version = "0.10.11"
dependencies = [
"itertools",
"log",
@ -3016,14 +3016,14 @@ dependencies = [
[[package]]
name = "letterbox-procmail2notmuch"
version = "0.10.12"
version = "0.10.11"
dependencies = [
"anyhow",
]
[[package]]
name = "letterbox-server"
version = "0.10.12"
version = "0.10.11"
dependencies = [
"ammonia",
"anyhow",
@ -3065,7 +3065,7 @@ dependencies = [
[[package]]
name = "letterbox-shared"
version = "0.10.12"
version = "0.10.11"
dependencies = [
"build-info",
"letterbox-notmuch",
@ -3074,7 +3074,7 @@ dependencies = [
[[package]]
name = "letterbox-web"
version = "0.10.12"
version = "0.10.11"
dependencies = [
"build-info",
"build-info-build",

View File

@ -8,7 +8,7 @@ authors = ["Bill Thiede <git@xinu.tv>"]
edition = "2021"
license = "UNLICENSED"
publish = ["xinu"]
version = "0.10.12"
version = "0.10.11"
repository = "https://git.z.xinu.tv/wathiede/letterbox"
[profile.dev]

View File

@ -47,8 +47,8 @@ urlencoding = "2.1.3"
#xtracing = { path = "../../xtracing" }
#xtracing = { git = "http://git-private.h.xinu.tv/wathiede/xtracing.git" }
xtracing = { version = "0.3.0", registry = "xinu" }
letterbox-notmuch = { version = "0.10.12", path = "../notmuch", registry = "xinu" }
letterbox-shared = { version = "0.10.12", path = "../shared", registry = "xinu" }
letterbox-notmuch = { version = "0.10.11", path = "../notmuch", registry = "xinu" }
letterbox-shared = { version = "0.10.11", path = "../shared", registry = "xinu" }
[build-dependencies]
build-info-build = "0.0.40"

View File

@ -12,5 +12,5 @@ version.workspace = true
[dependencies]
build-info = "0.0.40"
letterbox-notmuch = { version = "0.10.12", path = "../notmuch", registry = "xinu" }
letterbox-notmuch = { version = "0.10.11", path = "../notmuch", registry = "xinu" }
serde = { version = "1.0.147", features = ["derive"] }

View File

@ -33,8 +33,8 @@ wasm-bindgen = "=0.2.100"
uuid = { version = "1.13.1", features = [
"js",
] } # direct dep to set js feature, prevents Rng issues
letterbox-shared = { version = "0.10.12", path = "../shared", registry = "xinu" }
letterbox-notmuch = { version = "0.10.12", path = "../notmuch", registry = "xinu" }
letterbox-shared = { version = "0.10.11", path = "../shared", registry = "xinu" }
letterbox-notmuch = { version = "0.10.11", path = "../notmuch", registry = "xinu" }
seed_hooks = { version = "0.4.0", registry = "xinu" }
strum_macros = "0.27.1"

View File

@ -273,13 +273,6 @@ fn search_results(
tags.remove(idx);
};
let is_unread = unread_idx.is_some();
let mut title_break = None;
const TITLE_LENGTH_WRAP_LIMIT: usize = 40;
for w in r.subject.split_whitespace() {
if w.len() > TITLE_LENGTH_WRAP_LIMIT {
title_break = Some(C!["break-all", "text-pretty"]);
}
}
div![
C![
"flex",
@ -322,7 +315,7 @@ fn search_results(
attrs! {
At::Href => urls::thread(&tid)
},
div![title_break, &r.subject],
div![&r.subject],
span![C!["text-xs"], pretty_authors(&r.authors)],
div![
C!["flex", "flex-wrap", "justify-between"],
@ -1104,18 +1097,11 @@ fn thread(
let unread_thread_id = thread.thread_id.clone();
let spam_add_thread_id = thread.thread_id.clone();
let spam_unread_thread_id = thread.thread_id.clone();
let mut title_break = None;
const TITLE_LENGTH_WRAP_LIMIT: usize = 40;
for w in subject.split_whitespace() {
if w.len() > TITLE_LENGTH_WRAP_LIMIT {
title_break = Some(C!["break-all", "text-pretty"]);
}
}
div![
C!["lg:p-4", "max-w-4xl"],
div![
C!["p-4", "lg:p-0"],
h3![C!["text-xl"], title_break, subject],
h3![C!["text-xl", "break-all", "text-pretty"], subject],
span![removable_tags_chiclet(&thread.thread_id, &tags)],
IF!(!catchup_mode => div![
C!["pt-4", "gap-2", "flex", "justify-around"],
@ -1411,18 +1397,11 @@ fn news_post(
]
}
let mut title_break = None;
const TITLE_LENGTH_WRAP_LIMIT: usize = 40;
for w in subject.split_whitespace() {
if w.len() > TITLE_LENGTH_WRAP_LIMIT {
title_break = Some(C!["break-all", "text-pretty"]);
}
}
div![
C!["lg:p-4", "max-w-4xl"],
div![
C!["p-4", "lg:p-0"],
h3![C!["text-xl"], title_break, subject],
h3![C!["text-xl", "break-all", "text-pretty"], subject],
span![tag(format!("News/{}", post.slug))],
IF!(!catchup_mode => div![
C!["pt-4", "gap-2", "flex", "justify-around"],