1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-07 03:12:33 +01:00

More fine tuning of filter issue report feature

This commit is contained in:
Raymond Hill 2021-11-28 07:47:16 -05:00
parent b66dfb1c87
commit aad90eb323
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
3 changed files with 9 additions and 14 deletions

View File

@ -20,11 +20,6 @@ h3 {
:root:not(.mobile) .supportEntry > div:first-of-type { :root:not(.mobile) .supportEntry > div:first-of-type {
margin-inline-end: 2em; margin-inline-end: 2em;
} }
.supportEntry > div.hasButtons {
align-items: center;
display: flex;
justify-content: space-around;
}
.supportEntry h3 { .supportEntry h3 {
margin: 1em 0; margin: 1em 0;
} }
@ -36,9 +31,7 @@ h3 {
margin-top: 1em; margin-top: 1em;
} }
.e > .supportEntry select { .e > .supportEntry select {
padding: var(--default-gap-xxsmall); min-width: 50%;
}
.e > .supportEntry select {
max-width: calc(100% - 1em); max-width: calc(100% - 1em);
} }
body:not(.filterIssue) .body > div.e { body:not(.filterIssue) .body > div.e {

View File

@ -191,7 +191,7 @@ const reportedPage = (( ) => {
} }
document.body.classList.add('filterIssue'); document.body.classList.add('filterIssue');
return { return {
hostname: parsedURL.hostname.replace(/^www\./, ''), hostname: parsedURL.hostname.replace(/^(m|mobile|www)\./, ''),
popupPanel: JSON.parse(url.searchParams.get('popupPanel')), popupPanel: JSON.parse(url.searchParams.get('popupPanel')),
}; };
} catch(ex) { } catch(ex) {
@ -262,7 +262,7 @@ uBlockDashboard.patchCodeMirrorEditor(cmEditor);
uDom('[data-i18n="supportFindSpecificButton"]').on('click', ev => { uDom('[data-i18n="supportFindSpecificButton"]').on('click', ev => {
const url = new URL('https://github.com/uBlockOrigin/uAssets/issues'); const url = new URL('https://github.com/uBlockOrigin/uAssets/issues');
url.searchParams.set('q', `is:issue "${reportedPage.hostname}" in:title`); url.searchParams.set('q', `is:issue sort:updated-desc "${reportedPage.hostname}" in:title`);
vAPI.messaging.send('default', { vAPI.messaging.send('default', {
what: 'gotoURL', what: 'gotoURL',
details: { url: url.href, select: true, index: -1 }, details: { url: url.href, select: true, index: -1 },

View File

@ -65,6 +65,11 @@
<div> <div>
<p data-i18n="supportS3P1"> <p data-i18n="supportS3P1">
<p data-i18n="supportS6P1S1"> <p data-i18n="supportS6P1S1">
</div>
<button type="button" data-i18n="supportFindSpecificButton"></button>
</div>
<div class="supportEntry">
<div>
<p> <p>
<label data-i18n="supportS6URL"></label><br> <label data-i18n="supportS6URL"></label><br>
<select name="url"> <select name="url">
@ -84,11 +89,8 @@
<p> <p>
<label><span class="input checkbox"><input id="isNSFW" type="checkbox"><svg viewBox="0 0 24 24"><path d="M1.73,12.91 8.1,19.28 22.79,4.59"/></svg></span><span data-i18n="supportS6Checkbox1"></span></label> <label><span class="input checkbox"><input id="isNSFW" type="checkbox"><svg viewBox="0 0 24 24"><path d="M1.73,12.91 8.1,19.28 22.79,4.59"/></svg></span><span data-i18n="supportS6Checkbox1"></span></label>
</div> </div>
<div class="hasButtons">
<button type="button" data-i18n="supportFindSpecificButton"></button>
<button type="button" data-i18n="supportReportSpecificButton"></button> <button type="button" data-i18n="supportReportSpecificButton"></button>
</div> </div>
</div>
<hr> <hr>
</div> </div>
<div class="a b c d"> <div class="a b c d">