Skip to content

Commit

Permalink
some css changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Paddyk45 committed Feb 8, 2025
1 parent f59e7a3 commit cf03b88
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/templates/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub async fn admin_template(cookies: CookieJar) -> (StatusCode, Markup) {
body {
header style="display: flex; align-items: center;" {
a href="/" {
img.logo src="/static/logo.png" style="height: 48px; width: 48px" alt="Logo";
img.logo src="/static/logo.png" alt="Logo";
}

h1 style="margin-bottom: 16px; margin-left: 16px; padding: 16px" { (CONFIG.get().unwrap().lock().await.instance_name) " - Admin" }
Expand Down
2 changes: 1 addition & 1 deletion src/templates/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub async fn index_template(cookies: CookieJar) -> (StatusCode, Markup) {
body {
header style="display: flex; align-items: center;" {
a href="/" {
img.logo src="/static/logo.png" style="height: 48px; width: 48px" alt="Logo";
img.logo src="/static/logo.png" alt="Logo";
}

h1 style="margin-bottom: 16px; margin-left: 16px; padding: 16px" { (CONFIG.get().unwrap().lock().await.instance_name) }
Expand Down
3 changes: 2 additions & 1 deletion src/templates/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ r#"<link rel="shortcut icon" type="image/png" href="/static/favicon.png">"#,
"input { min-width: 30%; display: block; }",
"label { margin-down: 3px; display: block; }",
"}",
".logo { image-rendering: pixelated }",
".logo { image-rendering: pixelated; margin-bottom: 0; height: 48px }",
"header { padding-top: 0.5rem; padding-bottom: 0.2rem; }",
"</style>"
));

Expand Down
4 changes: 3 additions & 1 deletion src/templates/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ pub async fn monitor_template(monitor_id: Path<u64>, cookies: CookieJar) -> (Sta
};

let render = html!(
(DOCTYPE)
html {
head {
(HTML_HEADER_GLOB)
Expand All @@ -199,8 +200,9 @@ pub async fn monitor_template(monitor_id: Path<u64>, cookies: CookieJar) -> (Sta

header style="display: flex; align-items: center;" {
a href="/" {
img.logo src="/static/logo.png" style="height: 48px; width: 48px" alt="Logo";
img.logo src="/static/logo.png" alt="Logo";
}

h1 style="margin-bottom: 16px; margin-left: 16px; padding: 16px" { "Monitor info: " (mon_name) }
}
(render_monitor_info(monitor, *monitor_id).await)
Expand Down

0 comments on commit cf03b88

Please sign in to comment.