File tree 1 file changed +26
-7
lines changed
site/src/pages/WorkspacesPage
1 file changed +26
-7
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,8 @@ export const WorkspacesEmpty = (props: {
92
92
>
93
93
{ featuredTemplates ?. map ( ( t ) => (
94
94
< Link
95
- to = { `/templates/${ t . name } /workspace` }
96
95
key = { t . id }
96
+ to = { `/templates/${ t . name } /workspace` }
97
97
css = { ( theme ) => ( {
98
98
width : "320px" ,
99
99
padding : 16 ,
@@ -120,19 +120,38 @@ export const WorkspacesEmpty = (props: {
120
120
{ t . name }
121
121
</ Avatar >
122
122
</ div >
123
- < div >
124
- < h4 css = { { fontSize : 14 , fontWeight : 600 , margin : 0 } } >
125
- { t . display_name . length > 0 ? t . display_name : t . name }
123
+
124
+ < div css = { { width : "100%" , minWidth : "0" } } >
125
+ < h4
126
+ css = { {
127
+ fontSize : 14 ,
128
+ fontWeight : 600 ,
129
+ margin : 0 ,
130
+ overflow : "hidden" ,
131
+ textOverflow : "ellipsis" ,
132
+ whiteSpace : "nowrap" ,
133
+ } }
134
+ >
135
+ { t . display_name || t . name }
126
136
</ h4 >
127
- < span
137
+
138
+ < p
128
139
css = { ( theme ) => ( {
129
140
fontSize : 13 ,
130
141
color : theme . palette . text . secondary ,
131
- lineHeight : "0.5" ,
142
+ lineHeight : "1.4" ,
143
+ margin : 0 ,
144
+ paddingTop : "4px" ,
145
+
146
+ // We've had users plug URLs directly into the
147
+ // descriptions, when those URLS have no hyphens or other
148
+ // easy semantic breakpoints. Need to set this to ensure
149
+ // those URLs don't break outside their containing boxes
150
+ wordBreak : "break-word" ,
132
151
} ) }
133
152
>
134
153
{ t . description }
135
- </ span >
154
+ </ p >
136
155
</ div >
137
156
</ Link >
138
157
) ) }
You can’t perform that action at this time.
0 commit comments