mirror of https://github.com/kiwix/libkiwix.git
fixed button allignment
This commit is contained in:
parent
bce922ab89
commit
2ed9a50eca
|
@ -40,7 +40,7 @@ body {
|
||||||
.kiwixNav__filters {
|
.kiwixNav__filters {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-gap: 20px;
|
grid-gap: 20px;
|
||||||
grid-template-columns: repeat(7, 1fr);
|
grid-template-columns: 231px 231px;
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -74,6 +74,7 @@
|
||||||
const language = getInnerHtml(book, 'language');
|
const language = getInnerHtml(book, 'language');
|
||||||
const tags = getInnerHtml(book, 'tags');
|
const tags = getInnerHtml(book, 'tags');
|
||||||
let tagHtml = tags.split(';').filter(tag => {return !(tag.split(':')[0].startsWith('_'))})
|
let tagHtml = tags.split(';').filter(tag => {return !(tag.split(':')[0].startsWith('_'))})
|
||||||
|
.map((tag) => {return tag.charAt(0).toUpperCase() + tag.slice(1)})
|
||||||
.join(' | ').replace(/_/g, ' ');
|
.join(' | ').replace(/_/g, ' ');
|
||||||
let downloadLink;
|
let downloadLink;
|
||||||
let zimSize = 0;
|
let zimSize = 0;
|
||||||
|
@ -131,7 +132,11 @@
|
||||||
}
|
}
|
||||||
const kiwixResultText = document.querySelector('.kiwixHomeBody__results')
|
const kiwixResultText = document.querySelector('.kiwixHomeBody__results')
|
||||||
if (results) {
|
if (results) {
|
||||||
kiwixResultText.innerHTML = `${results} books`;
|
let resultText = `${results} books`;
|
||||||
|
if (results === 1) {
|
||||||
|
resultText = `${results} book`;
|
||||||
|
}
|
||||||
|
kiwixResultText.innerHTML = resultText;
|
||||||
} else {
|
} else {
|
||||||
kiwixResultText.innerHTML = ``;
|
kiwixResultText.innerHTML = ``;
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,6 +69,6 @@
|
||||||
<div id="fadeOut" class="fadeOut"></div>
|
<div id="fadeOut" class="fadeOut"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="loader" style="position: absolute; top: 50%"><div class="loader-spinner"></div></div>
|
<div class="loader" style="position: absolute; top: 50%"><div class="loader-spinner"></div></div>
|
||||||
<div id="kiwixfooter" class="kiwixfooter">Powered by <a href="https://kiwix.org"> Kiwix</a></div>
|
<div id="kiwixfooter" class="kiwixfooter">Powered by <a href="https://kiwix.org">Kiwix</a></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue