Fixed styles
This commit is contained in:
parent
fbf61d18e9
commit
9cf71507f7
@ -220,11 +220,12 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
lightboxTrigger.forEach(function (element) {
|
||||
element.addEventListener('click', function () {
|
||||
const imgSrc = element.getAttribute('src');
|
||||
textContent = ''
|
||||
textContent = '';
|
||||
try {
|
||||
textContent = element.closest('tr').querySelector('td:nth-child(3)').textContent; // Adjust the index accordingly
|
||||
lightboxText.textContent = textContent;
|
||||
} catch (e) {
|
||||
textContent = '';
|
||||
}
|
||||
|
||||
lightboxImage.setAttribute('src', imgSrc);
|
||||
|
@ -211,13 +211,13 @@ body {
|
||||
|
||||
<p class="card-footer-item">
|
||||
<span>
|
||||
<a class="is-size-7" style="color: #363636;" href="/{{ i['set_num'] }}">Inventory</a>
|
||||
<a class="is-size-6" style="color: #363636;" href="/{{ i['set_num'] }}">Inventory</a>
|
||||
</span>
|
||||
</p>
|
||||
|
||||
<p class="card-footer-item">
|
||||
<span>
|
||||
<a class="is-size-7" style="color: #363636;" href="/{{ i['set_num'] }}">Instructions</a>
|
||||
<a class="is-size-6" style="color: #363636;" href="/{{ i['set_num'] }}">Instructions</a>
|
||||
</span>
|
||||
</p>
|
||||
</footer>
|
||||
|
Loading…
Reference in New Issue
Block a user