summaryrefslogtreecommitdiff
path: root/webapp/src/components/table.rs
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-12-23 12:32:34 -0500
committerKjetil Orbekk <kj@orbekk.com>2022-12-23 12:32:34 -0500
commit89489b0cf0a6cf81dd29426fdf0eeb5aee9231de (patch)
treeef87738d9439570162d96b8fa98a9cf47fa3f4a4 /webapp/src/components/table.rs
parent6c9651194fda7a9167157e835fbe9fd691e9a1a9 (diff)
Display current and previous trick
Diffstat (limited to 'webapp/src/components/table.rs')
-rw-r--r--webapp/src/components/table.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/webapp/src/components/table.rs b/webapp/src/components/table.rs
index bf66897..6ccb9d1 100644
--- a/webapp/src/components/table.rs
+++ b/webapp/src/components/table.rs
@@ -181,7 +181,15 @@ pub fn playing_view(
html! {
<>
<div class="center">
- <TrickInPlay in_progress={playing.current_trick.clone()}/>
+ <div class="playing-center-layout">
+ <div class="current-trick">
+ <TrickInPlay trick={playing.current_trick.trick.clone()}/>
+ </div>
+ <div class="previous-trick">
+ <p>{"Last trick"}</p>
+ <TrickInPlay trick={playing.previous_trick.clone()}/>
+ </div>
+ </div>
</div>
<div class="hand north">
{ dummy }