From e232911d8a07fa381a4c9d90e30ae8401cff7ca3 Mon Sep 17 00:00:00 2001 From: lunarised Date: Fri, 20 Feb 2026 11:03:47 +1300 Subject: [PATCH 1/2] fixed overflow of comments box --- static/style.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/style.css b/static/style.css index ead50ae..e287fc9 100644 --- a/static/style.css +++ b/static/style.css @@ -765,6 +765,8 @@ border-radius: var(--radius-md); line-height: 1.6; white-space: pre-wrap; + word-break: break-word; + overflow-wrap: break-word; } .delete-btn { From e1332b358b08867196a13e571fbfd350c9e81423 Mon Sep 17 00:00:00 2001 From: lunarised Date: Fri, 20 Feb 2026 11:10:45 +1300 Subject: [PATCH 2/2] fixed formatting (have now added it to formatOnSave so i will stop forgetting)) --- src/handlers.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index f148075..711f206 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -51,10 +51,7 @@ fn truncate_opt(input: Option, max_chars: usize) -> Option { } /// Check if any field contains filter words (case-insensitive) -fn contains_filter_words( - text: Option<&str>, - filter_words: &[String], -) -> bool { +fn contains_filter_words(text: Option<&str>, filter_words: &[String]) -> bool { if let Some(text) = text { let text_lower = text.to_lowercase(); filter_words.iter().any(|word| text_lower.contains(word)) @@ -64,10 +61,7 @@ fn contains_filter_words( } /// Check if feedback contains any filter words -fn feedback_contains_filtered_words( - form: &FeedbackSubmission, - filter_words: &[String], -) -> bool { +fn feedback_contains_filtered_words(form: &FeedbackSubmission, filter_words: &[String]) -> bool { contains_filter_words(form.character_name.as_deref(), filter_words) || contains_filter_words(form.server.as_deref(), filter_words) || contains_filter_words(form.comments.as_deref(), filter_words)