From 191f2f00d6f1b8a42628eba0f10ee29ac8d86b55 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 24 Feb 2023 18:00:16 -0500 Subject: [PATCH] Put back reload button in logger's "Details" dialog Related feedback: - https://github.com/uBlockOrigin/uBlock-issues/discussions/2497#discussioncomment-5100726 --- src/css/logger-ui.css | 5 +++-- src/js/logger-ui.js | 11 +++++++++++ src/logger-ui.html | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/css/logger-ui.css b/src/css/logger-ui.css index fd054dbc9..7b892a493 100644 --- a/src/css/logger-ui.css +++ b/src/css/logger-ui.css @@ -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; diff --git a/src/js/logger-ui.js b/src/js/logger-ui.js index b54afdc1f..058772d7e 100644 --- a/src/js/logger-ui.js +++ b/src/js/logger-ui.js @@ -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) { diff --git a/src/logger-ui.html b/src/logger-ui.html index 265f7025d..96b80beed 100644 --- a/src/logger-ui.html +++ b/src/logger-ui.html @@ -116,7 +116,7 @@ - eye-dropper + eye-dropperrefresh