1
Fork 0

Don't use newlines in style

This commit is contained in:
Tobias Berger 2025-01-13 12:26:35 +01:00
parent ee111a0f15
commit 58fd20b5f0
Signed by: toby
GPG key ID: 2D05EFAB764D6A88
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View file

@ -431,7 +431,7 @@ checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
[[package]] [[package]]
name = "minesweeper-nojs" name = "minesweeper-nojs"
version = "1.5.0" version = "1.5.1"
dependencies = [ dependencies = [
"http-body-util", "http-body-util",
"hyper", "hyper",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "minesweeper-nojs" name = "minesweeper-nojs"
version = "1.5.0" version = "1.5.1"
edition = "2021" edition = "2021"
[profile.release] [profile.release]

View file

@ -180,7 +180,7 @@ async fn create_board(width: usize, height: usize, mines: usize) -> Response<Ful
.as_str(); .as_str();
style_string += format!( style_string += format!(
"#input_{field_index}:checked ~ main label[for=\"input_{field_index}\"]::before {{ content: \"{}\"; }}\n#input_{field_index}:checked ~ main label[for=\"input_{field_index}\"] {{ pointer-events: none; }}", "#input_{field_index}:checked ~ main label[for=\"input_{field_index}\"]::before {{ content: \"{}\"; }} #input_{field_index}:checked ~ main label[for=\"input_{field_index}\"] {{ pointer-events: none; }}",
if field.mine { "X".into() } else { field.neighbor_mines.to_string() }) if field.mine { "X".into() } else { field.neighbor_mines.to_string() })
.as_str(); .as_str();
} }