diff --git a/apps/frontend-pwa/src/components/groupActivity/GroupActivityStack.tsx b/apps/frontend-pwa/src/components/groupActivity/GroupActivityStack.tsx index 8e54b0fc0b..1480b58f56 100644 --- a/apps/frontend-pwa/src/components/groupActivity/GroupActivityStack.tsx +++ b/apps/frontend-pwa/src/components/groupActivity/GroupActivityStack.tsx @@ -171,6 +171,7 @@ function GroupActivityStack({ stackInstanceIds={ stack.elements?.map((element) => element.id) ?? [] } + showSeparator={element.elementType === ElementType.Flashcard} withParticipant />
{t(`pwa.groupActivity.answer${correctness}`)}
-
{`${grading.score}/${ +
{`${grading.score}/${ grading.maxPoints } ${t('shared.generic.points')}`}
@@ -225,7 +226,7 @@ function GroupActivityStack({ {!decisions ? ( ) : ( -
+
{t.rich('pwa.groupActivity.alreadySubmittedAt', { br: () =>
, date: submittedAt, diff --git a/apps/frontend-pwa/src/components/practiceQuiz/Bookmark.tsx b/apps/frontend-pwa/src/components/practiceQuiz/Bookmark.tsx index 55b44d7af2..920aa276b2 100644 --- a/apps/frontend-pwa/src/components/practiceQuiz/Bookmark.tsx +++ b/apps/frontend-pwa/src/components/practiceQuiz/Bookmark.tsx @@ -64,18 +64,22 @@ function Bookmark({ bookmarks, quizId, stackId }: BookmarkProps) { }) return ( -
bookmarkElementStack()} + data={{ cy: 'bookmark-element-stack' }} + className={{ + root: twMerge( + 'flex flex-row items-center text-sm shadow-none', + bookmarks === null || typeof bookmarks === 'undefined' + ? 'hidden' + : undefined + ), + }} > -
{t('shared.generic.bookmark')}
- -
+ + ) } diff --git a/apps/frontend-pwa/src/components/practiceQuiz/ElementStack.tsx b/apps/frontend-pwa/src/components/practiceQuiz/ElementStack.tsx index a3dae08a3c..56cb8da6ae 100644 --- a/apps/frontend-pwa/src/components/practiceQuiz/ElementStack.tsx +++ b/apps/frontend-pwa/src/components/practiceQuiz/ElementStack.tsx @@ -121,7 +121,7 @@ function ElementStack({
)} -
+
{stack.elements && stack.elements.length > 0 && stack.elements.map((element, elementIx) => { @@ -139,6 +139,9 @@ function ElementStack({ stackInstanceIds={ stack.elements?.map((element) => element.id) ?? [] } + showSeparator={ + element.elementType === ElementType.Flashcard + } /> { setStudentResponse({}) @@ -177,7 +180,7 @@ function ElementStack({ {/* display mark all as read button, if only content elements have not been answered yet */} {typeof stackStorage === 'undefined' && showMarkAsRead && (
-
+ {showSeparator &&
}
) } diff --git a/packages/shared-components/src/ChoicesQuestion.tsx b/packages/shared-components/src/ChoicesQuestion.tsx index cb707ab06a..952df38b65 100644 --- a/packages/shared-components/src/ChoicesQuestion.tsx +++ b/packages/shared-components/src/ChoicesQuestion.tsx @@ -48,7 +48,7 @@ function ChoicesQuestion({ {content !== '
' && (
diff --git a/packages/shared-components/src/ContentElement.tsx b/packages/shared-components/src/ContentElement.tsx index 60b808119b..388d93dc02 100644 --- a/packages/shared-components/src/ContentElement.tsx +++ b/packages/shared-components/src/ContentElement.tsx @@ -27,7 +27,7 @@ function ContentElement({ return (
' && (
diff --git a/packages/shared-components/src/NumericalQuestion.tsx b/packages/shared-components/src/NumericalQuestion.tsx index f29f7e9b7d..5b194f52e5 100644 --- a/packages/shared-components/src/NumericalQuestion.tsx +++ b/packages/shared-components/src/NumericalQuestion.tsx @@ -40,7 +40,7 @@ function NumericalQuestion({ {content !== '
' && (