Skip to content

Commit

Permalink
Font size of Next Experience pickers >3
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoudkooi committed Aug 20, 2024
1 parent 8a83f84 commit d73f34e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# CHANGELOG.md
## 8.2.0.2 (2024-08-20)
Fixes / changes:
- Decrease font size to 8pt of Next Experience pickers when there are more than 3

## 8.2.0.1 (2024-08-12)
Fixes / changes:
- The position and size of the View Data popup is now stored, so that it opens at the same position and size as it was closed.


## 8.2.0.0 (2024-08-12)
Features:
- Tabs opened by SN Utils will now open next to the current tab, instead of at the end.
Expand Down
6 changes: 5 additions & 1 deletion inject_next.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,9 @@ grSPC.deleteMultiple();`;
text-overflow: ellipsis;
cursor: pointer;
}
div.smallpicker {
font-size: 8pt;
}
div.snupicker:hover {
background-color: RGB(var(--now-unified-nav_nav-menu-trigger--background-color--hover,83, 82, 106));
}
Expand Down Expand Up @@ -512,6 +515,7 @@ grSPC.deleteMultiple();`;


setTimeout(() => { this.addClassToPickerDivs(snuSpacer) }, 4000);
setTimeout(() => { this.addClassToPickerDivs(snuSpacer) }, 8000);

snuSpacer.addEventListener('mouseover', () => {
this.addClassToPickerDivs();
Expand Down Expand Up @@ -544,11 +548,11 @@ grSPC.deleteMultiple();`;
pickerDivs.forEach((div, idx) => {
div.className = 'snupicker';
div.dataset.index = ++idx;

if (window?.snusettings?.highlightdefaultupdateset && div.innerText.includes('Default [')){
div.className = 'snupicker snudefault';
div.title = '[SN Utils] You may be working in the default Update set! (Disable this warning in settings)'
}
if (pickerDivs.length >= 4) div.className += ' smallpicker';
});

const element = querySelectorShadowDom.querySelectorDeep('div.header-avatar-button');
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.0.1",
"version": "8.2.0.2",
"manifest_version": 3,
"permissions": [
"activeTab",
Expand Down

0 comments on commit d73f34e

Please sign in to comment.