diff --git a/emhttp/plugins/dynamix/styles/jquery.sweetalert.css b/emhttp/plugins/dynamix/styles/jquery.sweetalert.css index ef56bd904..4dbce8e99 100644 --- a/emhttp/plugins/dynamix/styles/jquery.sweetalert.css +++ b/emhttp/plugins/dynamix/styles/jquery.sweetalert.css @@ -34,7 +34,7 @@ pre#swaltext { font-family: clear-sans; text-align: center; width: 90vw; - max-width: 480px; + max-width: 600px; padding: 2rem; max-height: 95vh; position: fixed; @@ -77,6 +77,12 @@ pre#swaltext { line-height: normal; } + /* take p tags that don't have a pre child inside and make them break words to prevent overflow */ + p:not(:has(pre)) { + overflow-wrap: break-word; + white-space: pre-wrap; + } + pre { font-size: 1.5rem; }