File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
frontends/main/src/app-pages/DashboardPage/CoursewareDisplay Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,12 @@ const CardRoot = styled.div(({ theme }) => ({
53
53
} ,
54
54
} ) )
55
55
56
+ const TitleLink = styled ( Link ) ( ( { theme } ) => ( {
57
+ [ theme . breakpoints . down ( "md" ) ] : {
58
+ maxWidth : "calc(100% - 16px)" ,
59
+ } ,
60
+ } ) )
61
+
56
62
const MenuButton = styled ( ActionButton ) ( ( { theme } ) => ( {
57
63
marginLeft : "-8px" ,
58
64
[ theme . breakpoints . down ( "md" ) ] : {
@@ -262,9 +268,9 @@ const DashboardCard: React.FC<DashboardCardProps> = ({
262
268
const desktopLayout = (
263
269
< CardRoot data-testid = "enrollment-card-desktop" >
264
270
< Stack justifyContent = "start" alignItems = "stretch" gap = "8px" flex = { 1 } >
265
- < Link size = "medium" color = "black" href = { marketingUrl } >
271
+ < TitleLink size = "medium" color = "black" href = { marketingUrl } >
266
272
{ title }
267
- </ Link >
273
+ </ TitleLink >
268
274
{ enrollment ?. status === EnrollmentStatus . Completed ? (
269
275
< SubtitleLink href = "#" >
270
276
{ < RiAwardLine size = "16px" /> }
@@ -311,9 +317,9 @@ const DashboardCard: React.FC<DashboardCardProps> = ({
311
317
width = "100%"
312
318
>
313
319
< Stack direction = "column" gap = "8px" >
314
- < Link size = "medium" color = "black" href = { marketingUrl } >
320
+ < TitleLink size = "medium" color = "black" href = { marketingUrl } >
315
321
{ title }
316
- </ Link >
322
+ </ TitleLink >
317
323
{ enrollment ?. status === EnrollmentStatus . Completed ? (
318
324
< SubtitleLink href = "#" >
319
325
{ < RiAwardLine size = "16px" /> }
You can’t perform that action at this time.
0 commit comments