explicitly hyphenate domains in popup
This commit is contained in:
parent
6ff68aaa74
commit
e0c9c13856
|
@ -465,10 +465,6 @@ a:hover .svg-icon {
|
||||||
margin-left: .6ex
|
margin-left: .6ex
|
||||||
}
|
}
|
||||||
|
|
||||||
.write-style-link::before {
|
|
||||||
content: "\00ad"; /* "soft" hyphen */
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-blank > .breadcrumbs {
|
.about-blank > .breadcrumbs {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -202,7 +202,7 @@ function createWriterElement(frame) {
|
||||||
title: `url-prefix("${url}")`,
|
title: `url-prefix("${url}")`,
|
||||||
tabIndex: isAboutBlank ? -1 : 0,
|
tabIndex: isAboutBlank ? -1 : 0,
|
||||||
textContent: prefs.get('popup.breadcrumbs.usePath')
|
textContent: prefs.get('popup.breadcrumbs.usePath')
|
||||||
? new URL(url).pathname.slice(1)
|
? t.breakWord(new URL(url).pathname.slice(1))
|
||||||
: frameId
|
: frameId
|
||||||
? isAboutBlank ? url : 'URL'
|
? isAboutBlank ? url : 'URL'
|
||||||
: t('writeStyleForURL').replace(/ /g, '\u00a0'), // this URL
|
: t('writeStyleForURL').replace(/ /g, '\u00a0'), // this URL
|
||||||
|
@ -227,7 +227,7 @@ function createWriterElement(frame) {
|
||||||
const domainLink = t.template.writeStyle.cloneNode(true);
|
const domainLink = t.template.writeStyle.cloneNode(true);
|
||||||
Object.assign(domainLink, {
|
Object.assign(domainLink, {
|
||||||
href: 'edit.html?domain=' + encodeURIComponent(domain),
|
href: 'edit.html?domain=' + encodeURIComponent(domain),
|
||||||
textContent: numParts > 2 ? domain.split('.')[0] : domain,
|
textContent: t.breakWord(numParts > 2 ? domain.split('.')[0] : domain),
|
||||||
title: `domain("${domain}")`,
|
title: `domain("${domain}")`,
|
||||||
onclick: e => Events.openEditor(e, {domain}),
|
onclick: e => Events.openEditor(e, {domain}),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user