From f7b9e026a0528e316f3b96c64a2741b2c5277555 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Wed, 8 Feb 2023 21:30:01 -0800 Subject: [PATCH] CSS fix for Safari --- web/static/css/chat.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/static/css/chat.css b/web/static/css/chat.css index fab2eea..007e88a 100644 --- a/web/static/css/chat.css +++ b/web/static/css/chat.css @@ -125,6 +125,11 @@ body { grid-row: 3; /* background-color: magenta; */ overflow-y: scroll; + + /* Work around Safari bug: the chat history would just lengthen the full + web page every time cuz it doesn't do grids well, so add a max height + of 90% viewport height to mitigate it a bit. */ + max-height: 90vh; } /*******************