Skip to content

Commit

Permalink
generalized alert height handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr. Frank Hoffmann authored and Dr. Frank Hoffmann committed May 2, 2019
1 parent 28cc285 commit 0001f7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/zmi/styles/resources/zmi_base.css
Expand Up @@ -27,14 +27,14 @@ body.zmi {
main.container-fluid .alert {
margin: 0 0 1rem;
}
main.container-fluid .alert.alert-danger pre {
main.container-fluid .alert pre {
margin:0;
max-height:4em;
overflow-y:scroll;
overflow-x:hidden;
cursor:pointer;
}
main.container-fluid .alert.alert-danger pre.fullheight {
main.container-fluid .alert pre.fullheight {
max-height: fit-content;
overflow-y: hidden;
}
Expand Down
2 changes: 1 addition & 1 deletion src/zmi/styles/resources/zmi_base.js
Expand Up @@ -219,7 +219,7 @@ $(function() {
}

// EXPAND LONG ERROR ALERTS
$('main.container-fluid .alert.alert-danger pre').click( function() {
$('main.container-fluid .alert pre').click( function() {
$(this).toggleClass('fullheight');
})

Expand Down

0 comments on commit 0001f7e

Please sign in to comment.