hide USO-archive version in manager

* it's a hard-to-read blob of digits: 2021110.8.46
* it's somewhat redundant as we have the 'update age' column
This commit is contained in:
tophf 2021-01-28 15:41:53 +03:00
parent c12d3fc5e3
commit 34c067c3be
2 changed files with 7 additions and 1 deletions

View File

@ -361,6 +361,7 @@ a:hover {
padding-left: .5em;
font-weight: normal;
}
.newUI .style-info[data-type=version][data-is-date],
.newUI .style-info[data-type=version][data-value=""],
.newUI .style-info[data-type=version][data-value="1.0.0"] {
display: none;

View File

@ -1,6 +1,6 @@
/* global $ $$ animateElement scrollElementIntoView */// dom.js
/* global API */// msg.js
/* global debounce isEmptyObj sessionStore */// toolbox.js
/* global URLS debounce isEmptyObj sessionStore */// toolbox.js
/* global filterAndAppend */// filters.js
/* global installed newUI */// manage.js
/* global prefs */
@ -83,6 +83,11 @@ function createStyleElement({style, name: nameLC}) {
parts.homepage.href = parts.homepage.title = style.url || '';
parts.infoVer.textContent = ud ? ud.version : '';
parts.infoVer.dataset.value = ud ? ud.version : '';
if (`${style.updateUrl}`.startsWith(URLS.usoArchiveRaw)) {
parts.infoVer.dataset.isDate = '';
} else {
delete parts.infoVer.dataset.isDate;
}
if (newUI.enabled) {
createAgeText(parts.infoAge, style);
} else {