Skip to content

Commit 8b5eb95

Browse files
committed
fix(panel): add bold title for config and ticket tab
1 parent d06d66d commit 8b5eb95

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

rustmail_panel/src/components/configuration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ pub fn configuration_page() -> Html {
191191
<div class="max-w-4xl mx-auto">
192192

193193
<div class="mb-8">
194-
<h1 class="text-3xl text-white mb-2">{i18n.t("panel.configuration.title")}</h1>
194+
<h1 class="text-3xl text-white mb-2 font-bold">{i18n.t("panel.configuration.title")}</h1>
195195
<p class="text-gray-400">{i18n.t("panel.configuration.description")}</p>
196196
</div>
197197

rustmail_panel/src/components/ticket.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ use js_sys::Date;
77
use serde::Deserialize;
88
use wasm_bindgen::JsValue;
99
use wasm_bindgen_futures::spawn_local;
10+
use web_sys::UrlSearchParams;
1011
use yew::prelude::*;
1112
use yew_router::prelude::*;
12-
use web_sys::UrlSearchParams;
1313

1414
#[derive(Clone, PartialEq, Deserialize, Debug)]
1515
pub struct ThreadMessage {
@@ -202,7 +202,10 @@ pub fn tickets_list() -> Html {
202202
let page_size = page_size.clone();
203203

204204
Callback::from(move |_| {
205-
let url = format!("/panel/tickets?page={}&page_size={}", *current_page, *page_size);
205+
let url = format!(
206+
"/panel/tickets?page={}&page_size={}",
207+
*current_page, *page_size
208+
);
206209
navigator.replace(&TicketsRoute::TicketsList);
207210
if let Some(window) = web_sys::window() {
208211
if let Some(history) = window.history().ok() {
@@ -270,7 +273,9 @@ pub fn tickets_list() -> Html {
270273
let query = search_query.to_lowercase();
271274
t.id.to_lowercase().contains(&query)
272275
|| t.user_name.to_lowercase().contains(&query)
273-
|| t.messages.iter().any(|m| m.content.to_lowercase().contains(&query))
276+
|| t.messages
277+
.iter()
278+
.any(|m| m.content.to_lowercase().contains(&query))
274279
}
275280
})
276281
.cloned()
@@ -287,7 +292,7 @@ pub fn tickets_list() -> Html {
287292
html! {
288293
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 text-white">
289294
<div class="mb-8">
290-
<h1 class="text-3xl text-white mb-2">{i18n.t("panel.tickets.title")}</h1>
295+
<h1 class="text-3xl text-white mb-2 font-bold">{i18n.t("panel.tickets.title")}</h1>
291296
<p class="text-gray-400">{i18n.t("panel.tickets.description")}</p>
292297
</div>
293298

0 commit comments

Comments
 (0)