Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Oct 6, 2018
1 parent 2e90c0f commit 241f2cc
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 21 deletions.
8 changes: 6 additions & 2 deletions src/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ body[dir="rtl"] {
color: black;
content: attr(data-tip);
font: 12px sans-serif;
left: -10vw;
line-height: 140%;
min-width: 25vw;
opacity: 1;
padding: 4px 6px;
pointer-events: none;
position: absolute;
right: 10vw;
text-align: start;
top: 110%;
-webkit-transition: opacity 0.15s 0.5s;
Expand All @@ -59,11 +61,13 @@ body[dir="rtl"] {
}
body[dir="ltr"] .tip-anchor-left[data-i18n-tip]:hover::after,
body[dir="rtl"] .tip-anchor-right[data-i18n-tip]:hover::after {
left: -3vw;
left: 0;
right: unset;
}
body[dir="ltr"] .tip-anchor-right[data-i18n-tip]:hover::after,
body[dir="rtl"] .tip-anchor-left[data-i18n-tip]:hover::after {
right: -3vw;
left: unset;
right: 0;
}
body.noTooltips *[data-i18n-tip]::after {
display: none;
Expand Down
2 changes: 1 addition & 1 deletion src/css/logger-ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ body {
overflow: hidden;
position: fixed;
right: 0;
/*top: 0;*/
z-index: 2000;
}
body.popupPanelOn #popupPanelContainer {
Expand All @@ -68,6 +67,7 @@ body.popupPanelOn #popupPanelContainer {
border: 0;
padding: 0;
margin: 0;
overflow: hidden;
width: 100%;
}
#popupPanelContainer.hide > iframe {
Expand Down
7 changes: 4 additions & 3 deletions src/js/logger-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -687,9 +687,10 @@ var popupPanel = (function() {
popupObserver.disconnect();
}
popup.setAttribute('src', 'popup.html?tabId=' + tabId);
if ( popup.parentNode === null ) {
container.appendChild(popup);
}
if ( popup.parentNode !== null ) { return; }
let rect = document.getElementById('toolbar').getBoundingClientRect();
container.style.top = rect.height + 'px';
container.appendChild(popup);
};

let stop = function() {
Expand Down
10 changes: 5 additions & 5 deletions src/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
<div class="toolbar">
<span class="scope" id="specificScope"><span>&nbsp;</span></span><!--
--><span class="scope" id="globalScope" data-scope="*" data-i18n-tip="matrixGlobalScopeTip"><span><span>&#x2217;</span></span></span>
<span id="mtxSwitch_matrix-off" class="fa-icon fa-icon-badged scopeRel tip-anchor-left" data-i18n-tip="matrixMtxButtonTip">power-off</span>
<span id="mtxSwitch_matrix-off" class="fa-icon fa-icon-badged scopeRel" data-i18n-tip="matrixMtxButtonTip">power-off</span>
<span id="buttonMtxSwitches" class="fa-icon fa-icon-badged scopeRel" tabindex="-1" data-dropdown-menu="dropDownMenuSwitches">ellipsis-v</span>
<span id="buttonRecipes" class="fa-icon fa-icon-badged scopeRel tip-anchor-right" data-dropdown-menu="dropDownMenuRecipes">puzzle-piece</span>
<span id="buttonPersist" class="fa-icon fa-icon-badged scopeRel tip-anchor-left" data-i18n-tip="matrixPersistButtonTip">lock</span>
<span id="buttonRevertScope" class="fa-icon fa-icon-badged scopeRel tip-anchor-left" data-i18n-tip="matrixRevertButtonTip">reply</span>
<span id="buttonRecipes" class="fa-icon fa-icon-badged scopeRel" data-dropdown-menu="dropDownMenuRecipes">puzzle-piece</span>
<span id="buttonPersist" class="fa-icon fa-icon-badged scopeRel" data-i18n-tip="matrixPersistButtonTip">lock</span>
<span id="buttonRevertScope" class="fa-icon fa-icon-badged scopeRel" data-i18n-tip="matrixRevertButtonTip">reply</span>
</div>
<div class="toolbar">
<span id="buttonReload" class="fa-icon tip-anchor-left" data-i18n-tip="matrixReloadButton">sync-alt</span>
<span id="buttonReload" class="fa-icon tip-anchor-right" data-i18n-tip="matrixReloadButton">sync-alt</span>
</div>
<div class="toolbar">
<span id="buttonRevertAll" class="fa-icon tip-anchor-right" data-i18n-tip="matrixRevertAllEntry">reply-all</span>
Expand Down
13 changes: 3 additions & 10 deletions tools/make-firefox-meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,9 @@
with open(webext_manifest_file) as f:
webext_manifest = json.load(f)

match = re.search('^(\d+\.\d+\.\d+)(\.\d+)$', version)
if match:
buildtype = int(match.group(2)[1:])
if buildtype < 100:
builttype = 'b' + str(buildtype)
else:
builttype = 'rc' + str(buildtype - 100)
webext_manifest['version'] = match.group(1) + builttype
else:
webext_manifest['version'] = version
webext_manifest['version'] = version
match = re.search('^\d+\.\d+\.\d+(b|rc)', version)
if not match:
# https://bugzilla.mozilla.org/show_bug.cgi?id=1459007
# By design Firefox opens the sidebar with new installation of
# uMatrix when sidebar_action is present in the manifest.
Expand Down

0 comments on commit 241f2cc

Please sign in to comment.