diff --git a/php/css/triviatime.css b/php/css/triviatime.css index 26fbac5..be743c3 100644 --- a/php/css/triviatime.css +++ b/php/css/triviatime.css @@ -26,9 +26,34 @@ body { word-wrap: break-word; overflow-wrap: break-word; -ms-word-break: break-all; - word-break: break-all + word-break: break-all; } .modal-table tbody tr:hover { background-color: #E0E0E0; cursor: pointer; } +@media screen and (max-height: 600px) { + .modal-body { + max-height: 340px; + } +} +@media screen and (max-height: 520px) { + .modal-body { + max-height: 260px; + } +} +@media screen and (max-height: 438px) { + .modal-body { + max-height: 200px; + } +} +@media screen and (max-height: 370px) { + .modal-body { + max-height: 150px; + } +} +@media screen and (max-height: 320px) { + .modal-body { + max-height: 70px; + } +} diff --git a/php/js/triviatime.js b/php/js/triviatime.js index 3fd094b..313de0d 100644 --- a/php/js/triviatime.js +++ b/php/js/triviatime.js @@ -21,7 +21,7 @@ $(function() { var values = $(this).children("td"); var content = ''; for(var i=0;i"; + content += "

" + headers.eq(i).text() + "

"; content += "

" + values.eq(i).text() + "

"; } $('#infoModal > .modal-body').html(content);