Skip to content

Commit 132bb6b

Browse files
committed
Polish Matching Activity Editing
1 parent 99cd1ef commit 132bb6b

File tree

4 files changed

+6
-24
lines changed

4 files changed

+6
-24
lines changed

backend/services/implementations/activityService.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -86,28 +86,12 @@ class ActivityService {
8686
mediaType: "text",
8787
context: "",
8888
},
89-
{
90-
id: "7",
91-
mediaType: "text",
92-
context: "",
93-
},
94-
{
95-
id: "8",
96-
mediaType: "text",
97-
context: "",
98-
},
99-
{
100-
id: "9",
101-
mediaType: "text",
102-
context: "",
103-
},
10489
];
10590
activityData = {
10691
...baseActivity,
10792
media: {
10893
"1": [media[0], media[1], media[2]],
10994
"2": [media[3], media[4], media[5]],
110-
"3": [media[6], media[7], media[8]],
11195
},
11296
correctAnswers: [
11397
["1", "4", "7"],

frontend/src/components/course_authoring/matching/LongRightArrow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const LongRightArrow = ({ labelText }: { labelText?: string }) => {
88
sx={{
99
position: "relative",
1010
flex: 1,
11-
minWidth: "80px",
11+
minWidth: "35px",
1212
display: "flex",
1313
alignItems: "center",
1414
justifyContent: "center",

frontend/src/components/course_authoring/matching/MatchingRow.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const MediaDisplay = ({
7070
// mediaItem.mediaType === "text"
7171
return (
7272
<TextField
73-
sx={{ width: "231.8px", maxHeight: "64px" }}
73+
sx={{ width: "180px", maxHeight: "64px" }}
7474
placeholder="[Click here to edit]"
7575
defaultValue={mediaItem.context}
7676
onChange={(e) => onChange(e.target.value)}
@@ -106,15 +106,15 @@ const MatchingRow = ({
106106
return (
107107
<Stack
108108
direction="row"
109-
gap="16px"
109+
gap="10px"
110110
alignItems="center"
111111
minHeight="52px"
112112
maxHeight="80px"
113113
sx={{ width: "100%" }}
114114
>
115115
<Stack
116116
direction="row"
117-
gap="28px"
117+
gap="10px"
118118
alignItems="center"
119119
minHeight="52px"
120120
maxHeight="80px"

frontend/src/components/feedback/feedback-admin-view/FeedbackAdminViewSidebar.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const FeedbackAdminUnitSidebarItem = ({
4646
</ListItemButton>
4747
<Collapse in={open} timeout="auto" unmountOnExit>
4848
<List component="div" disablePadding>
49-
{unit.modules.map((module) => (
49+
{unit.modules.map((module, index) => (
5050
<ListItemButton
5151
key={module.id}
5252
sx={{
@@ -63,9 +63,7 @@ const FeedbackAdminUnitSidebarItem = ({
6363
alignItems="center"
6464
alignSelf="stretch"
6565
>
66-
<Typography variant="bodyMedium">
67-
{module.displayIndex}.
68-
</Typography>
66+
<Typography variant="bodyMedium">{index + 1}.</Typography>
6967
<Typography
7068
variant={
7169
module.id === selectedModuleId

0 commit comments

Comments
 (0)