Don't use newlines in style
This commit is contained in:
parent
ee111a0f15
commit
58fd20b5f0
3 changed files with 3 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -431,7 +431,7 @@ checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
|
|||
|
||||
[[package]]
|
||||
name = "minesweeper-nojs"
|
||||
version = "1.5.0"
|
||||
version = "1.5.1"
|
||||
dependencies = [
|
||||
"http-body-util",
|
||||
"hyper",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "minesweeper-nojs"
|
||||
version = "1.5.0"
|
||||
version = "1.5.1"
|
||||
edition = "2021"
|
||||
|
||||
[profile.release]
|
||||
|
|
|
@ -180,7 +180,7 @@ async fn create_board(width: usize, height: usize, mines: usize) -> Response<Ful
|
|||
.as_str();
|
||||
|
||||
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() })
|
||||
.as_str();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue