Put back reload button in logger's "Details" dialog

Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/discussions/2497#discussioncomment-5100726
This commit is contained in:
Raymond Hill 2023-02-24 18:00:16 -05:00
parent 09b7ab36f5
commit 191f2f00d6
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
3 changed files with 15 additions and 3 deletions

View File

@ -600,6 +600,7 @@ body[dir="rtl"] .closeButton {
.netFilteringDialog > .headers > .tools {
bottom: 0;
display: flex;
height: 100%;
position: absolute;
}
body[dir="ltr"] .netFilteringDialog > .headers > .tools {
@ -609,8 +610,8 @@ body[dir="rtl"] .netFilteringDialog > .headers > .tools {
left: 0;
}
.netFilteringDialog > .headers > .tools > span {
color: var(--ink-4);
fill: var(--ink-4);
color: var(--ink-3);
fill: var(--ink-3);
cursor: pointer;
font-size: 1.5em;
padding: 0 0.25em;

View File

@ -1519,6 +1519,17 @@ dom.on(document, 'keydown', ev => {
});
return;
}
// Reload tab associated with event
if ( tcl.contains('reload') ) {
ev.stopPropagation();
messaging.send('loggerUI', {
what: 'reloadTab',
tabId: targetTabId,
bypassCache: ev.ctrlKey || ev.metaKey || ev.shiftKey,
});
return;
}
};
const onSelectChange = function(ev) {

View File

@ -116,7 +116,7 @@
<span class="header details" data-pane="details" data-i18n="loggerEntryDetailsHeader"></span>
<span class="header dynamic" data-pane="dynamic" data-i18n="loggerURLFilteringHeader"></span>
<span class="header static" data-pane="static" data-i18n="loggerStaticFilteringHeader"></span>
<span class="tools"><span class="fa-icon picker">eye-dropper</span></span>
<span class="tools"><span class="fa-icon picker">eye-dropper</span><span class="fa-icon reload">refresh</span></span>
</div>
<div class="panes">
<div class="pane details" data-pane="details">