1
0
Fork 0
mirror of https://gitlab.com/MrFry/qmining-page synced 2025-04-01 20:23:44 +02:00

Rework of page "allQuestions", minor style and layout fixes and modifications for other pages

This commit is contained in:
ndaniel1102 2021-04-12 01:02:40 +02:00
parent 47a2227f87
commit 23865a68cd
14 changed files with 147 additions and 94 deletions

View file

@ -45,16 +45,14 @@ export default function QuestionSearchResult({ data, searchTerm }) {
const renderCount = () => {
return (
<div>
<div>
{searchTerm ? '' : 'Kezdj el írni kereséshez! '}
{`${results} találat, ${subjs.length || data.length} tárgyból`}
</div>
<div className="resultContainer">
{results === 0 && (
<div>
{'Pontos egyezést keres a kereső, próbálj kisebb részletre keresni'}
{`${results} találat. Az általad keresett kifejezés nem található,
próbáld bővíteni a keresési feltételt!`}
</div>
)}
{results > 0 && <div>{`${results} találat.`}</div>}
</div>
)
}
@ -62,10 +60,12 @@ export default function QuestionSearchResult({ data, searchTerm }) {
if (results > constants.maxQuestionsToRender) {
return (
<div>
{renderCount()}
{searchTerm ? (
<div>Szűkítsd a keresést találatok megjelenítéséhez!</div>
<div className="resultContainer">
Szűkítsd a keresési feltételeket a találatok megjelenítéséhez!
</div>
) : null}
<hr />
</div>
)
} else {