|
|
|
@ -177,12 +177,26 @@ export default function BaseQuestionCard({
|
|
|
|
|
const cardContent = (
|
|
|
|
|
<>
|
|
|
|
|
{showVoteButtons && (
|
|
|
|
|
<>
|
|
|
|
|
<div className="md:hidden">
|
|
|
|
|
<VotingButtons
|
|
|
|
|
size="sm"
|
|
|
|
|
upvoteCount={upvoteCount}
|
|
|
|
|
vote={vote}
|
|
|
|
|
onDownvote={handleDownvote}
|
|
|
|
|
onUpvote={handleUpvote}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="hidden md:block">
|
|
|
|
|
<VotingButtons
|
|
|
|
|
size="md"
|
|
|
|
|
upvoteCount={upvoteCount}
|
|
|
|
|
vote={vote}
|
|
|
|
|
onDownvote={handleDownvote}
|
|
|
|
|
onUpvote={handleUpvote}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
<div className="flex flex-1 flex-col items-start gap-2">
|
|
|
|
|
<div className="flex items-baseline justify-between self-stretch">
|
|
|
|
@ -230,6 +244,17 @@ export default function BaseQuestionCard({
|
|
|
|
|
showCreateEncounterButton) && (
|
|
|
|
|
<div className="flex gap-2">
|
|
|
|
|
{showAnswerStatistics && (
|
|
|
|
|
<>
|
|
|
|
|
<div className="sm:hidden">
|
|
|
|
|
<Button
|
|
|
|
|
addonPosition="start"
|
|
|
|
|
icon={ChatBubbleBottomCenterTextIcon}
|
|
|
|
|
label={`${answerCount}`}
|
|
|
|
|
size="sm"
|
|
|
|
|
variant="tertiary"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="hidden sm:block">
|
|
|
|
|
<Button
|
|
|
|
|
addonPosition="start"
|
|
|
|
|
icon={ChatBubbleBottomCenterTextIcon}
|
|
|
|
@ -237,8 +262,21 @@ export default function BaseQuestionCard({
|
|
|
|
|
size="sm"
|
|
|
|
|
variant="tertiary"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
{showReceivedStatistics && (
|
|
|
|
|
<>
|
|
|
|
|
<div className="sm:hidden">
|
|
|
|
|
<Button
|
|
|
|
|
addonPosition="start"
|
|
|
|
|
icon={EyeIcon}
|
|
|
|
|
label={`${receivedCount}`}
|
|
|
|
|
size="sm"
|
|
|
|
|
variant="tertiary"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="hidden sm:block">
|
|
|
|
|
<Button
|
|
|
|
|
addonPosition="start"
|
|
|
|
|
icon={EyeIcon}
|
|
|
|
@ -246,6 +284,8 @@ export default function BaseQuestionCard({
|
|
|
|
|
size="sm"
|
|
|
|
|
variant="tertiary"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
{showCreateEncounterButton && (
|
|
|
|
|
<Button
|
|
|
|
|