summaryrefslogtreecommitdiff
path: root/views/join.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-06-13 20:53:25 +0200
committerTor Andersson <tor@ccxvii.net>2022-06-14 16:49:10 +0200
commit64608341e200cceb92a6cb3e523e0863b2c04ccd (patch)
treec780f08e61e610381c3c0570405335de4864eeb9 /views/join.pug
parent21bcebd491d0fa4393bb4f2263af446aa67bfedd (diff)
downloadserver-64608341e200cceb92a6cb3e523e0863b2c04ccd.tar.gz
Transpose "join" table for better mobile layout.
Diffstat (limited to 'views/join.pug')
-rw-r--r--views/join.pug20
1 files changed, 10 insertions, 10 deletions
diff --git a/views/join.pug b/views/join.pug
index 8a19a09..39d2ff9 100644
--- a/views/join.pug
+++ b/views/join.pug
@@ -8,10 +8,13 @@ html
game.title_id)
title= game.title_name
style.
- table { min-width: auto; }
- th,td { min-width: 10em; border: 1px solid black; }
- table td a.red { text-decoration: none; color: brown; font-size: 14px; }
+ table { min-width: 0; }
+ th,td { border: 1px solid black; }
+ td a.red { text-decoration: none; color: brown; font-size: 14px; float: right; }
td a { text-decoration: underline; color: blue; }
+ th { white-space: nowrap; background-color: gainsboro; }
+ td { width: 180px; background-color: white; }
+ #message { background-color: whitesmoke; }
.hide { display: none; }
script.
let game = !{ JSON.stringify(game) }
@@ -45,16 +48,13 @@ html
p
table
- thead
- tr
- each role in roles
- th.command(id="role_"+role.replace(/ /g, "_")+"_name")= role
tbody
- tr
- each role in roles
+ each role in roles
+ tr
+ th(id="role_"+role.replace(/ /g, "_")+"_name")= role
td.command(id="role_"+role.replace(/ /g, "_")) -
tr
- td.command#message(colspan=roles.length) -
+ td.command#message(colspan=2) -
p
button.hide#delete_button(onclick="confirm_delete()") Delete