Skip to content

Commit

Permalink
(JS) update tabTooltipNavButtons.uc.js to 1.2.3
Browse files Browse the repository at this point in the history
(CSS) fix an issue with menulist menupopups being clipped.
adjust panel body clip box to content-box
so content will be visually constrained 4px from panel edges.
  • Loading branch information
aminomancer committed Sep 17, 2022
1 parent 93ffbcb commit c7530ca
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions JS/tabTooltipNavButtons.uc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name Tab Tooltip Navigation Buttons
// @version 1.2.2
// @version 1.2.3
// @author aminomancer
// @homepage https://github.com/aminomancer/uc.css.js
// @description This script turns the tab tooltip into a mini navigation popup
Expand Down Expand Up @@ -683,7 +683,7 @@ class TabTooltipNav {

const MAX_HISTORY_MENU_ITEMS = 15;
const tooltipBack = gNavigatorBundle.getString("tabHistory.goBack");
const tooltipCurrent = gNavigatorBundle.getString("tabHistory.current");
const tooltipCurrent = gNavigatorBundle.getString("tabHistory.reloadCurrent");
const tooltipForward = gNavigatorBundle.getString("tabHistory.goForward");

let updateSessionHistory = (sessionHistory, initial, ssInParent) => {
Expand Down
2 changes: 1 addition & 1 deletion resources/in-content/menus.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ menupopup.in-menulist {
background-color: transparent !important;
border-radius: var(--menupopup-border-radius) !important;
margin: var(--menupopup-margin) !important;
overflow: hidden !important;
/* overflow: hidden !important; */
color: var(--menu-color) !important;
background-image: unset !important;
padding: var(--menupopup-padding) !important;
Expand Down
12 changes: 8 additions & 4 deletions uc-panels.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ panelview {
}
}

.panel-subview-body {
overflow-clip-box: content-box !important;
}

.panel-subview-body:not(:last-child) {
padding-bottom: 0 !important;
}

/* without this, the last button in the panel will typically be touching the
edge of the panel, instead of 4px from the edge as it should be.
this connects with .panel-subview-body rules in userChrome.au.css */
Expand All @@ -62,10 +70,6 @@ this connects with .panel-subview-body rules in userChrome.au.css */
padding-bottom: 0 !important;
}

.panel-subview-body:not(:last-child) {
padding-bottom: 0 !important;
}

/* fixes a similar tiny height animation hiccup when switching panels in the identity popup */
.identity-popup-section,
.identity-popup-security-content,
Expand Down

0 comments on commit c7530ca

Please sign in to comment.