diff options
author | David Gay <david@davidgay.org> | 2021-05-28 16:12:39 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-28 16:12:39 -0400 |
commit | 6f2ffc974173a884f3367bb7ecf2535dea81f3c4 (patch) | |
tree | a7934d07ad3e3a682f5415768a9d71fd172d7cca | |
parent | 9370f9b5803ce604dd63c8590d67e03968198cad (diff) |
Add some janky sizing from old Esoterra to be Good Enough™️ for launch
-rw-r--r-- | app/javascript/stylesheets/core.css | 8 | ||||
-rw-r--r-- | app/views/layouts/application.html.erb | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/app/javascript/stylesheets/core.css b/app/javascript/stylesheets/core.css index 9bfb19b..4342171 100644 --- a/app/javascript/stylesheets/core.css +++ b/app/javascript/stylesheets/core.css @@ -11,9 +11,17 @@ } .game-container-box { + min-height: 35rem; @apply p-2 border-2 border-gray-800 rounded; } +.side-box { + height: 35rem; + position: -webkit-sticky; + position: sticky; + top: 8px; +} + .header-title { font-family: "Montaga", "Open Sans", sans-serif; } diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 7ce8860..f8381ce 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -25,12 +25,12 @@ <%= yield %> </div> <% if user_signed_in? %> - <div id="chat" class="game-container-box col-span-12 sm:col-span-4" + <div id="chat" class="game-container-box side-box col-span-12 sm:col-span-4" data-turbolinks-permanent> <%= render "chat" %> </div> <% else %> - <div id="game_info" class="game-container-box col-span-12 sm:col-span-4" + <div id="game_info" class="game-container-box side-box col-span-12 sm:col-span-4" data-turbolinks-permanent> <%= render "game_info" %> </div> |