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

View File

@ -191,7 +191,7 @@ const reportedPage = (( ) => {
}
document.body.classList.add('filterIssue');
return {
hostname: parsedURL.hostname.replace(/^www\./, ''),
hostname: parsedURL.hostname.replace(/^(m|mobile|www)\./, ''),
popupPanel: JSON.parse(url.searchParams.get('popupPanel')),
};
} catch(ex) {
@ -262,7 +262,7 @@ uBlockDashboard.patchCodeMirrorEditor(cmEditor);
uDom('[data-i18n="supportFindSpecificButton"]').on('click', ev => {
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', {
what: 'gotoURL',
details: { url: url.href, select: true, index: -1 },

View File

@ -65,6 +65,11 @@
<div>
<p data-i18n="supportS3P1">
<p data-i18n="supportS6P1S1">
</div>
<button type="button" data-i18n="supportFindSpecificButton"></button>
</div>
<div class="supportEntry">
<div>
<p>
<label data-i18n="supportS6URL"></label><br>
<select name="url">
@ -84,11 +89,8 @@
<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>
</div>
<div class="hasButtons">
<button type="button" data-i18n="supportFindSpecificButton"></button>
<button type="button" data-i18n="supportReportSpecificButton"></button>
</div>
</div>
<hr>
</div>
<div class="a b c d">