Browse Source

Fixes gchq/CyberChef#137

Changes data-trigger to focus so scrolling works and sets max height.
Matt C 8 years ago
parent
commit
90ed62add2
2 changed files with 3 additions and 1 deletions
  1. 1 1
      src/web/HTMLOperation.js
  2. 2 0
      src/web/stylesheets/utils/_overrides.css

+ 1 - 1
src/web/HTMLOperation.js

@@ -51,7 +51,7 @@ HTMLOperation.prototype.toStubHtml = function(removeIcon) {
 
     if (this.description) {
         html += " data-container='body' data-toggle='popover' data-placement='auto right'\
-            data-content=\"" + this.description + "\" data-html='true' data-trigger='hover'";
+            data-content=\"" + this.description + "\" data-html='true' data-trigger='focus' tabindex='0'";
     }
 
     html += ">" + this.name;

+ 2 - 0
src/web/stylesheets/utils/_overrides.css

@@ -140,6 +140,8 @@ optgroup {
 .popover {
     background-color: var(--popover-background);
     border-color: var(--popover-border-colour);
+    max-height: 100%;
+    overflow-y: auto;
 }