From e3d355ea84c1b440808246e2078084159a473f1b Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Sat, 24 Oct 2020 21:13:36 +0200 Subject: [PATCH] Prevent really long (spam) messages from taking too much space --- chat.php | 1 + 1 file changed, 1 insertion(+) diff --git a/chat.php b/chat.php index 37bbb79..f3a2e3a 100644 --- a/chat.php +++ b/chat.php @@ -282,6 +282,7 @@ function prepare_stylesheets(bool $init = false){ $styles['default'] .= 's forwards;z-index:2;background-color:#500000;border:2px solid #ff0000} '; $styles['default'] .= '@keyframes timeout_messages{0%{top:-200%} 99%{top:-200%} 100%{top:0%}} '; $styles['default'] .= '.notes textarea{height:80vh;width:80%} iframe{width:100%;height:100%;margin:0;padding:0;border:none}'; + $styles['default'] .= '.msg{max-height:180px;overflow-y:auto}'; if($init || ! $db instanceof PDO){ return; }