Skip to content

Commit

Permalink
Minor fixes #548
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoudkooi committed Oct 17, 2024
1 parent 6b655a4 commit 22254e3
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# CHANGELOG.md

## 8.2.1.1 (2024-10-1)
Fixes / changes:
- Change Monaco editor height in modern BG Script to use more viewport height (Slack)
- Prevent hidding search bar in Next Experience when Updatset Pickers are shown (Issue #548)

## 8.2.1.0 (2024-10-10)
Fixes / changes:
- Hide search in studio when navigator collapsed (Issue #536)
- Prevent WindowsKey-S to save record (Meta key in windows) (LinkedIn Company Page DM)
- Allow encodedquery to have hyphen (-) in encodedquery (Follow up on issue #460 via Slack)
- Allow /rnd command on portal assesment page (Discussion #539)
Expand Down
5 changes: 5 additions & 0 deletions css/background.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,8 @@ h4, .result_header {
#resultbar a {
text-decoration: none;
}


#div_script:not(.code-editor) {
height: calc(100vh - 300px) !important;
}
8 changes: 5 additions & 3 deletions inject_next.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,9 +492,11 @@ grSPC.deleteMultiple();`;
searchInput.addEventListener('blur', (event) => {
if (searchInput.value == '') {
setTimeout(() => {
querySelectorShadowDom.querySelectorDeep('.sn-global-typeahead-control-container, .search-combobox--header').style.width = '32px';
querySelectorShadowDom.querySelectorDeep('#snuSpacer').style.display = 'inline';
}, 100);
if (!querySelectorShadowDom.querySelectorDeep('#global-search-context-control button.is-opened')){ //do not hide if context switcher is selected #548
querySelectorShadowDom.querySelectorDeep('.sn-global-typeahead-control-container, .search-combobox--header').style.width = '32px';
querySelectorShadowDom.querySelectorDeep('#snuSpacer').style.display = 'inline';
}
}, 500);
}
}, true);
var snuSpacer = document.createElement('div');
Expand Down
2 changes: 1 addition & 1 deletion js/bgscriptmodern.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function snuDividePage() {
<div id="result" class=result>Results will show here.</div>`;

document.querySelectorAll('.row').forEach(el => {
el.style.setProperty('margin-inline-start', '-8px', 'important'); //remove unneded padding
el.style.setProperty('margin-inline-start', '-8px', 'important'); //remove uneeded padding
el.style.setProperty('margin-inline-end', '-8px', 'important');
el.style.setProperty('margin-bottom', '5px');
el.style.setProperty('min-height', '29px');
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"short_name": "SN Utils",
"description": "Productivity tools for ServiceNow. (Personal work, not affiliated to ServiceNow)",
"author": "Arnoud Kooi / arnoudkooi.com",
"version": "8.2.1.0",
"version": "8.2.1.2",
"manifest_version": 3,
"permissions": [
"activeTab",
Expand Down

0 comments on commit 22254e3

Please sign in to comment.