css fix on motd

This commit is contained in:
ari melody 2025-06-16 19:53:01 +01:00
parent fc064efb61
commit dab6eefbdd
Signed by: ari
GPG key ID: CF99829C92678188
2 changed files with 6 additions and 2 deletions

View file

@ -120,7 +120,7 @@ env!("CARGO_PKG_VERSION"));
<strong>Players:</strong> <code>{}/{}</code><br/> <strong>Players:</strong> <code>{}/{}</code><br/>
<strong>MOTD:</strong> <strong>MOTD:</strong>
</p> </p>
<pre><code id=\"motd\">{}</code></pre>", <pre id=\"motd\"><code>{}</code></pre>",
sanitize_html(minecraft_status.version).to_string(), sanitize_html(minecraft_status.version).to_string(),
minecraft_status.players, minecraft_status.players,
minecraft_status.max_players, minecraft_status.max_players,

View file

@ -47,7 +47,11 @@ pre code {
background-color: #303030; background-color: #303030;
} }
pre code#motd { pre#motd {
margin-top: -1em
}
pre#motd code {
display: block; display: block;
width: fit-content; width: fit-content;
min-width: 440px; min-width: 440px;