Fixed styles

This commit is contained in:
FrederikBaerentsen 2024-04-14 22:46:00 +02:00
parent fbf61d18e9
commit 9cf71507f7
2 changed files with 4 additions and 3 deletions

View File

@ -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);

View File

@ -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>