[questions][ui] bottom padding

pull/411/head
wlren 3 years ago committed by Jeff Sieu
parent 975568cb77
commit b37e2e164e

@ -370,36 +370,39 @@ export default function QuestionsHomePage() {
console.log(value); console.log(value);
}} }}
/> />
{(questions ?? []).map((question) => ( <div className="flex flex-col gap-4 pb-4">
<QuestionOverviewCard {(questions ?? []).map((question) => (
key={question.id} <QuestionOverviewCard
answerCount={question.numAnswers} key={question.id}
company={question.company} answerCount={question.numAnswers}
content={question.content} company={question.company}
href={`/questions/${question.id}/${createSlug( content={question.content}
question.content, href={`/questions/${question.id}/${createSlug(
)}`} question.content,
location={question.location} )}`}
questionId={question.id} location={question.location}
receivedCount={question.receivedCount} questionId={question.id}
role={question.role} receivedCount={question.receivedCount}
timestamp={question.seenAt.toLocaleDateString(undefined, { role={question.role}
month: 'short', timestamp={question.seenAt.toLocaleDateString(undefined, {
year: 'numeric', month: 'short',
})} year: 'numeric',
type={question.type} })}
upvoteCount={question.numVotes} type={question.type}
onReceivedSubmit={(data) => { upvoteCount={question.numVotes}
console.log(data); onReceivedSubmit={(data) => {
}} // eslint-disable-next-line no-console
/> console.log(data);
))} }}
{questions?.length === 0 && ( />
<div className="flex w-full items-center justify-center gap-2 rounded-md border border-slate-300 bg-slate-200 p-4 text-slate-600"> ))}
<NoSymbolIcon className="h-6 w-6" /> {questions?.length === 0 && (
<p>Nothing found. Try changing your search filters.</p> <div className="flex w-full items-center justify-center gap-2 rounded-md border border-slate-300 bg-slate-200 p-4 text-slate-600">
</div> <NoSymbolIcon className="h-6 w-6" />
)} <p>Nothing found. Try changing your search filters.</p>
</div>
)}
</div>
</div> </div>
</div> </div>
</section> </section>

Loading…
Cancel
Save