From 64608341e200cceb92a6cb3e523e0863b2c04ccd Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 13 Jun 2022 20:53:25 +0200 Subject: Transpose "join" table for better mobile layout. --- views/join.pug | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'views') 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 -- cgit v1.2.3