Skip to content

Commit

Permalink
fix dropfour bug
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgb committed Sep 5, 2024
1 parent 547fd68 commit 24c7e51
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 15 deletions.
39 changes: 25 additions & 14 deletions examples/drop-four/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion examples/drop-four/client/src/board_component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@ impl BoardComponent {
board.get(row, col).map(|p| {
let ty = CELL_SIZE * row + CELL_SIZE / 2;
let style = format!("transform: translate(0, {}px)", ty);
let key = format!("{}-{}", row, col);

html! {
<g style={style} class="disc">
<g style={style} class="disc" key={key}>
{ self.view_disc(p, 0) }
</g>
}
Expand Down

0 comments on commit 24c7e51

Please sign in to comment.