mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
fixed button allignment
This commit is contained in:
committed by
Emmanuel Engelhart
parent
bce922ab89
commit
2ed9a50eca
@ -40,7 +40,7 @@ body {
|
||||
.kiwixNav__filters {
|
||||
display: grid;
|
||||
grid-gap: 20px;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
grid-template-columns: 231px 231px;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
|
@ -74,6 +74,7 @@
|
||||
const language = getInnerHtml(book, 'language');
|
||||
const tags = getInnerHtml(book, 'tags');
|
||||
let tagHtml = tags.split(';').filter(tag => {return !(tag.split(':')[0].startsWith('_'))})
|
||||
.map((tag) => {return tag.charAt(0).toUpperCase() + tag.slice(1)})
|
||||
.join(' | ').replace(/_/g, ' ');
|
||||
let downloadLink;
|
||||
let zimSize = 0;
|
||||
@ -131,7 +132,11 @@
|
||||
}
|
||||
const kiwixResultText = document.querySelector('.kiwixHomeBody__results')
|
||||
if (results) {
|
||||
kiwixResultText.innerHTML = `${results} books`;
|
||||
let resultText = `${results} books`;
|
||||
if (results === 1) {
|
||||
resultText = `${results} book`;
|
||||
}
|
||||
kiwixResultText.innerHTML = resultText;
|
||||
} else {
|
||||
kiwixResultText.innerHTML = ``;
|
||||
}
|
||||
|
Reference in New Issue
Block a user