Compile message no longer overflows on small screens

This commit is contained in:
n1474335 2018-08-20 00:04:49 +01:00
parent 2507362741
commit f052ed9b00
3 changed files with 11 additions and 2 deletions

View File

@ -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));
}

View File

@ -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...

View File

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