Ver Fonte

Compile message no longer overflows on small screens

n1474335 há 7 anos atrás
pai
commit
f052ed9b00
3 ficheiros alterados com 11 adições e 2 exclusões
  1. 3 1
      src/web/App.mjs
  2. 1 1
      src/web/html/index.html
  3. 7 0
      src/web/stylesheets/layout/_banner.css

+ 3 - 1
src/web/App.mjs

@@ -533,7 +533,9 @@ class App {
             compileInfo += " - " + window.compileMessage;
         }
 
-        document.getElementById("notice").innerHTML = compileInfo;
+        const notice = document.getElementById("notice");
+        notice.innerHTML = compileInfo;
+        notice.setAttribute("title", Utils.stripHtmlTags(window.compileMessage));
     }
 
 

+ 1 - 1
src/web/html/index.html

@@ -155,7 +155,7 @@
                         <a href="cyberchef.htm" download>Download CyberChef <i class="material-icons">file_download</i></a>
                     <% } %>
                 </div>
-                <div class="col" style="text-align: center;">
+                <div class="col-md-6" id="notice-wrapper">
                     <span id="notice">
                         <script type="text/javascript">
                             // Must be text/javascript rather than application/javascript otherwise IE won't recognise it...

+ 7 - 0
src/web/stylesheets/layout/_banner.css

@@ -21,3 +21,10 @@
     vertical-align: middle;
     padding-right: 10px;
 }
+
+#notice-wrapper {
+    text-align: center;
+    overflow: hidden;
+    text-overflow: ellipsis;
+    white-space: nowrap;
+}