diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-07-01 23:22:16 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 12:12:42 +0100 |
commit | 9024a7f97781497f45270952b42acbe1214efb59 (patch) | |
tree | 5337d080c32b65f3053925fd009dea8ceec67795 /play.html | |
parent | 3daf6c4722e130a5158a1e60493e3f70ab4e6a0d (diff) | |
download | shores-of-tripoli-9024a7f97781497f45270952b42acbe1214efb59.tar.gz |
Improve role and player name display with long user names.
Diffstat (limited to 'play.html')
-rw-r--r-- | play.html | 24 |
1 files changed, 15 insertions, 9 deletions
@@ -66,8 +66,8 @@ } .role_info { - padding: 5px 20px; - white-space: pre-wrap; + padding: 5px 15px; + white-space: pre-line; } #tooltip.card { @@ -299,7 +299,7 @@ svg circle, .piece { <div class="image_button" onclick="toggle_zoom()"><img src="/images/magnifying-glass.svg"></div> <div class="image_button chat_button" onclick="toggle_chat()"><img src="/images/chat-bubble.svg"></div> - <div id="prompt" class="prompt">$PROMPT</div> + <div id="prompt" class="prompt">Connecting...</div> <button id="button_pass" onclick="on_pass()" class="hide">Pass</button> <button id="button_next" onclick="on_next()" class="hide">Next</button> @@ -311,14 +311,20 @@ svg circle, .piece { <div class="grid_role"> <div class="role one"> - <div class="role_vp" id="us_score">30</div> - <div class="role_name">United States (<span class="role_user">$USER</span>)</div> - <div class="role_info" id="us_info">0 cards in hand</div> + <div class="role_name"> + United States + <div class="role_vp" id="us_score">30</div> + <div class="role_user">-</div> + </div> + <div class="role_info" id="us_info">Hand:
Draw:
Discard:</div> </div> <div class="role two"> - <div class="role_vp" id="tr_score">0</div> - <div class="role_name">Tripolitania (<span class="role_user">$USER</span>)</div> - <div class="role_info" id="tr_info">0 cards in hand</div> + <div class="role_name"> + Tripolitania + <div class="role_vp" id="tr_score">0</div> + <div class="role_user">-</div> + </div> + <div class="role_info" id="tr_info">Hand:
Draw:
Discard:</div> </div> <div class="role_info card_info"><div id="active_card" class="card show blank"></div></div> </div> |