From 76e0e5206faa47cc4bf3c91e6abd04ebaad99e42 Mon Sep 17 00:00:00 2001 From: Humberto Garza Date: Fri, 7 Jun 2024 14:42:11 -0500 Subject: [PATCH 1/2] Add Resize handle to build left panel --- src/azdo-pr-dashboard.user.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/azdo-pr-dashboard.user.js b/src/azdo-pr-dashboard.user.js index f3d7208..3809d4f 100644 --- a/src/azdo-pr-dashboard.user.js +++ b/src/azdo-pr-dashboard.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name More Awesome Azure DevOps (userscript) -// @version 3.7.3 +// @version 3.7.4 // @author Alejandro Barreto (NI) // @description Makes general improvements to the Azure DevOps experience, particularly around pull requests. Also contains workflow improvements for NI engineers. // @license MIT @@ -115,6 +115,7 @@ watchForWorkItemForms(); watchForNewDiffs(isDarkTheme); watchForShowMoreButtons(); + watchForBuildResultsPage(); if (atNI) { watchForDiffHeaders(); @@ -1435,6 +1436,14 @@ }); } + function watchForBuildResultsPage() { + eus.onUrl(/\/(_build\/results)/gi, (session, urlMatch) => { + session.onEveryNew(document, '.bolt-master-panel', async tree => { + $('.bolt-master-panel').css('resize', 'horizontal'); + }); + }); + } + async function enhancePullRequestRow(row, sectionTitle) { const pullRequestUrl = new URL(row.href, window.location.origin); const pullRequestId = parseInt(pullRequestUrl.pathname.substring(pullRequestUrl.pathname.lastIndexOf('/') + 1), 10); From 81f778f6f8d1cea1df898c39bb56747a390a594c Mon Sep 17 00:00:00 2001 From: Humberto Garza Date: Fri, 7 Jun 2024 14:51:32 -0500 Subject: [PATCH 2/2] target elements --- src/azdo-pr-dashboard.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/azdo-pr-dashboard.user.js b/src/azdo-pr-dashboard.user.js index 3809d4f..afe8d49 100644 --- a/src/azdo-pr-dashboard.user.js +++ b/src/azdo-pr-dashboard.user.js @@ -1438,8 +1438,8 @@ function watchForBuildResultsPage() { eus.onUrl(/\/(_build\/results)/gi, (session, urlMatch) => { - session.onEveryNew(document, '.bolt-master-panel', async tree => { - $('.bolt-master-panel').css('resize', 'horizontal'); + session.onEveryNew(document, '.bolt-master-panel', panel => { + $(panel).css('resize', 'horizontal'); }); }); }