simplify notes in options

This commit is contained in:
tophf 2020-11-15 19:33:35 +03:00
parent b0f08a7d6f
commit 497f31e3cd
2 changed files with 9 additions and 21 deletions

View File

@ -156,11 +156,8 @@
</label>
<label>
<span i18n-text="manageFavicons">
<a data-cmd="note"
i18n-title="manageFaviconsHelp"
href="#"
class="svg-inline-wrapper"
tabindex="0">
<a i18n-title="manageFaviconsHelp"
data-cmd="note" href="#" class="svg-inline-wrapper">
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
</a>
</span>
@ -188,11 +185,8 @@
<div class="items">
<label>
<span i18n-text="optionsUpdateInterval">
<a data-cmd="note"
i18n-title="optionsUpdateImportNote"
href="#"
class="svg-inline-wrapper"
tabindex="0">
<a i18n-title="optionsUpdateImportNote"
data-cmd="note" href="#" class="svg-inline-wrapper">
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
</a>
</span>
@ -243,11 +237,8 @@
<div class="items">
<label class="chromium-only">
<span i18n-text="optionsAdvancedStyleViaXhr">
<a data-cmd="note"
i18n-title="optionsAdvancedStyleViaXhrNote"
href="#"
class="svg-inline-wrapper"
tabindex="0">
<a i18n-title="optionsAdvancedStyleViaXhrNote"
data-cmd="note" href="#" class="svg-inline-wrapper">
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
</a>
</span>
@ -258,12 +249,8 @@
</label>
<label>
<span i18n-text="optionsAdvancedExposeIframes">
<a data-cmd="note"
i18n-data-title="optionsAdvancedExposeIframesNote"
i18n-title="optionsAdvancedExposeIframesNote"
href="#"
class="svg-inline-wrapper"
tabindex="0">
<a i18n-title="optionsAdvancedExposeIframesNote"
data-cmd="note" href="#" class="svg-inline-wrapper">
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
</a>
</span>

View File

@ -238,6 +238,7 @@ function setupRadioButtons() {
function splitLongTooltips() {
for (const el of $$('[title]')) {
el.dataset.title = el.title;
el.title = el.title.replace(/<\/?\w+>/g, ''); // strip html tags
if (el.title.length < 50) {
continue;
}