From dab6eefbdd7e40ceff05b0ae02d76389961d7247 Mon Sep 17 00:00:00 2001 From: ari melody Date: Mon, 16 Jun 2025 19:53:01 +0100 Subject: [PATCH] css fix on motd --- src/main.rs | 2 +- src/public/style/index.css | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 664036b..c9d1ffc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -120,7 +120,7 @@ env!("CARGO_PKG_VERSION")); Players: {}/{}
MOTD:

-
{}
", +
{}
", sanitize_html(minecraft_status.version).to_string(), minecraft_status.players, minecraft_status.max_players, diff --git a/src/public/style/index.css b/src/public/style/index.css index 9aac8cf..59c28af 100644 --- a/src/public/style/index.css +++ b/src/public/style/index.css @@ -47,7 +47,11 @@ pre code { background-color: #303030; } -pre code#motd { +pre#motd { + margin-top: -1em +} + +pre#motd code { display: block; width: fit-content; min-width: 440px;