Skip to content

Commit

Permalink
Compile message no longer overflows on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
n1474335 committed Aug 19, 2018
1 parent 2507362 commit f052ed9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/web/App.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}


Expand Down
2 changes: 1 addition & 1 deletion src/web/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down
7 changes: 7 additions & 0 deletions src/web/stylesheets/layout/_banner.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@
vertical-align: middle;
padding-right: 10px;
}

#notice-wrapper {
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

0 comments on commit f052ed9

Please sign in to comment.