Skip to content

Commit

Permalink
WB
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Feb 18, 2024
1 parent 8fa4c21 commit c11757d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 26 deletions.
41 changes: 18 additions & 23 deletions core/src/main/resources/hudson/PluginManager/_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ Behaviour.specify("#filter-box", "_table", 0, function (e) {
}
}

dependentsDiv.classList.add('distant-axis')
dependentsDiv.style.display = "inherit";
return dependentsDiv;
}
Expand Down Expand Up @@ -386,30 +385,26 @@ Behaviour.specify("#filter-box", "_table", 0, function (e) {
}

// Handle mouse in/out of the enable/disable cell (left most cell).
if (enableTD) {
enableTD.addEventListener("mouseenter", function () {
const button = enableTD.querySelector(`[data-type="app-tooltip-wrapper"]`);
const shinyNewDiv = document.createElement("div");

if (populateEnableDisableInfo(pluginTR, shinyNewDiv)) {
button.setAttribute("data-html-tooltip", shinyNewDiv.outerHTML);
Behaviour.applySubtree(button, true);
}
});
}
enableTD.addEventListener("mouseenter", function () {
const button = enableTD.querySelector(`[data-type="app-tooltip-wrapper"]`);
const shinyNewDiv = document.createElement("div");

if (populateEnableDisableInfo(pluginTR, shinyNewDiv)) {
button.setAttribute("data-html-tooltip", shinyNewDiv.outerHTML);
Behaviour.applySubtree(button, true);
}
});

// Handle mouse in/out of the uninstall cell (right most cell).
if (uninstallTD) {
uninstallTD.addEventListener("mouseenter", function () {
const button = uninstallTD.querySelector(`[data-type="app-tooltip-wrapper"]`);
const shinyNewDiv = document.createElement("div");

if (populateUninstallInfo(pluginTR, shinyNewDiv)) {
button.setAttribute("data-html-tooltip", shinyNewDiv.outerHTML);
Behaviour.applySubtree(button, true);
}
});
}
uninstallTD.addEventListener("mouseenter", function () {
const button = uninstallTD.querySelector(`[data-type="app-tooltip-wrapper"]`);
const shinyNewDiv = document.createElement("div");

if (populateUninstallInfo(pluginTR, shinyNewDiv)) {
button.setAttribute("data-html-tooltip", shinyNewDiv.outerHTML);
Behaviour.applySubtree(button, true);
}
});
}

for (let j = 0; j < pluginTRs.length; j++) {
Expand Down
6 changes: 3 additions & 3 deletions war/src/main/scss/pages/_plugin-manager.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,16 @@
.plugin-dependency-info {
display: flex;
flex-direction: column;
gap: 0.4375rem;
padding-block: 0.3rem;
gap: 0.5rem;
padding: 0.4rem 0.1rem;
max-width: 350px;

.subtitle {
opacity: 0.85;
color: var(--text-color-secondary);
}

.distant-axis {
.dependent-list {
display: flex;
gap: 0.4375rem;
flex-wrap: wrap;
Expand Down

0 comments on commit c11757d

Please sign in to comment.