File tree 1 file changed +9
-4
lines changed
statusphere-frontend/src/components
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,11 @@ export function Outages(props: OutagesProps) {
42
42
< Card className = { "bg-white" } >
43
43
< CardHeader className = { "items-left" } >
44
44
< CardTitle className = { "scroll-m-20 text-xl font-semibold tracking-tight" } >
45
- Incidents are not currently indexed for { props . statusPageDetails . name }
45
+ Incidents are not currently indexed for { props . statusPageDetails . name }
46
46
</ CardTitle >
47
47
< CardDescription className = { "leading-7 [&:not(:first-child)]:mt-6" } >
48
- You can view the official status page at: < a
49
- href = { props . statusPageDetails . url } > { props . statusPageDetails . name } status page</ a >
48
+ You can view the official status page at: < a
49
+ href = { props . statusPageDetails . url } > { props . statusPageDetails . name } status page</ a >
50
50
</ CardDescription >
51
51
</ CardHeader >
52
52
</ Card >
@@ -80,7 +80,12 @@ export function Outages(props: OutagesProps) {
80
80
< TableRow >
81
81
< TableCell > { convertToSimpleDate ( incident . startTime ) } </ TableCell >
82
82
< TableCell className = { "max-w-[300px] break-words" } > < a className = { "max-w-[300px] break-words" }
83
- href = { incident . deepLink } > { incident . title } </ a > </ TableCell >
83
+ href = { incident . deepLink } > { ( ( ) => {
84
+ if ( incident . title . length > 50 ) {
85
+ return incident . title . substring ( 0 , 50 )
86
+ }
87
+ return incident . title
88
+ } ) ( ) } </ a > </ TableCell >
84
89
< TableCell >
85
90
< Badge className = { getBadgeColour ( incident . impact ) } > { incident . impact } </ Badge >
86
91
</ TableCell >
You can’t perform that action at this time.
0 commit comments