Commit b235d12b authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '412-reverse-drug-search-list-no-scroll-bar' into 'master'

Resolve "Reverse (drug) search list - no scroll bar"

Closes #412

See merge request piotr.gawron/minerva!308
parents ac9d360d 437a903f
Pipeline #5122 passed with stage
in 2 minutes and 11 seconds
...@@ -725,6 +725,12 @@ a.adminLink:hover { ...@@ -725,6 +725,12 @@ a.adminLink:hover {
min-width: 390px; min-width: 390px;
} }
.popover-content {
display: inline-block;
overflow: auto;
max-height: 80vh;
}
/* /*
https://www.w3schools.com/css/tryit.asp?filename=trycss_tooltip https://www.w3schools.com/css/tryit.asp?filename=trycss_tooltip
*/ */
...@@ -753,4 +759,4 @@ https://www.w3schools.com/css/tryit.asp?filename=trycss_tooltip ...@@ -753,4 +759,4 @@ https://www.w3schools.com/css/tryit.asp?filename=trycss_tooltip
.minerva-overlay-panel { .minerva-overlay-panel {
overflow-x: hidden; overflow-x: hidden;
} }
\ No newline at end of file
...@@ -210,6 +210,15 @@ function createGroupContainer(inline, annotatorClass, annotatorsClassMapping, gr ...@@ -210,6 +210,15 @@ function createGroupContainer(inline, annotatorClass, annotatorsClassMapping, gr
return groupContainer; return groupContainer;
} }
/**
*
* @param {Annotation[]} annotations
* @param {Object} [options]
* @param {boolean} [options.showType = true]
* @param {boolean} [options.inline = false]
* @param {boolean} [options.groupAnnotations = true]
* @returns {HTMLDivElement}
*/
GuiUtils.prototype.createAnnotationList = function (annotations, options) { GuiUtils.prototype.createAnnotationList = function (annotations, options) {
var showType = true; var showType = true;
var inline = false; var inline = false;
......
...@@ -567,7 +567,7 @@ AbstractInfoWindow.prototype._createTableForTargetDiv = function (data, overlay) ...@@ -567,7 +567,7 @@ AbstractInfoWindow.prototype._createTableForTargetDiv = function (data, overlay)
var referencesCell = Functions.createElement({ var referencesCell = Functions.createElement({
type: "td" type: "td"
}); });
referencesCell.appendChild(self.getGuiUtils().createAnnotationList(annotations)); referencesCell.appendChild(self.getGuiUtils().createAnnotationList(annotations, {groupAnnotations: false}));
row.appendChild(referencesCell); row.appendChild(referencesCell);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment