Revert HTML Structure

This commit is contained in:
Gusted 2021-08-12 14:50:24 +02:00
parent ed8fdc75d8
commit f83edf4381
No known key found for this signature in database
GPG Key ID: FD821B732837125F
3 changed files with 3 additions and 6 deletions

View File

@ -101,9 +101,6 @@
<div class="search-result">
<a class="search-result-title"><span></span></a>
<div class="search-result-info">
<picture class="search-result-screenshot" i18n-title="installButton">
<img class="search-result-screenshot-default">
</picture>
<img class="search-result-screenshot" i18n-title="installButton">
<div class="search-result-status"></div>
<div class="search-result-actions">

View File

@ -68,7 +68,7 @@ body.search-results-shown {
filter: opacity(.2);
}
.search-result-screenshot > * {
.search-result-screenshot {
height: 140px;
width: 100%;
object-fit: cover;
@ -82,7 +82,7 @@ body.search-results-shown {
overflow-wrap: break-word;
}
.search-result-title picture {
.search-result-title img {
width: 20px;
height: 20px;
margin: -6px 4px -6px 0;

View File

@ -291,7 +291,7 @@
$('.search-result-title span', entry).textContent =
t.breakWord(name.length < 300 ? name : name.slice(0, 300) + '...');
// screenshot
const elShot = $('.search-result-screenshot-default', entry);
const elShot = $('.search-result-screenshot', entry);
if (isUsw) {
elShot.src = !/^https?:/i.test(shotName) ? BLANK_PIXEL :
imgType !== '.jpg' ? shotName.replace(/\.jpg$/, imgType) :