Skip to content

Commit 1f562b6

Browse files
gtsiolisroboquat
authored andcommitted
Truncate workspace name on workspace start page
1 parent ededf2c commit 1f562b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/dashboard/src/start/StartWorkspace.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
391391
<div className="flex space-x-3 items-center text-left rounded-xl m-auto px-4 h-16 w-72 mt-4 bg-gray-100 dark:bg-gray-800">
392392
<div className="rounded-full w-3 h-3 text-sm bg-gitpod-kumquat">&nbsp;</div>
393393
<div>
394-
<p className="text-gray-700 dark:text-gray-200 font-semibold">{this.state.workspaceInstance.workspaceId}</p>
394+
<p className="text-gray-700 dark:text-gray-200 font-semibold w-56 truncate">{this.state.workspaceInstance.workspaceId}</p>
395395
<a target="_parent" href={contextURL}><p className="w-56 truncate hover:text-blue-600 dark:hover:text-blue-400" >{contextURL}</p></a>
396396
</div>
397397
</div>
@@ -418,7 +418,7 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
418418
<div className="flex space-x-3 items-center text-left rounded-xl m-auto px-4 h-16 w-72 mt-4 mb-2 bg-gray-100 dark:bg-gray-800">
419419
<div className="rounded-full w-3 h-3 text-sm bg-gray-300">&nbsp;</div>
420420
<div>
421-
<p className="text-gray-700 dark:text-gray-200 font-semibold">{this.state.workspaceInstance.workspaceId}</p>
421+
<p className="text-gray-700 dark:text-gray-200 font-semibold w-56 truncate">{this.state.workspaceInstance.workspaceId}</p>
422422
<a target="_parent" href={contextURL}><p className="w-56 truncate hover:text-blue-600 dark:hover:text-blue-400" >{contextURL}</p></a>
423423
</div>
424424
</div>

0 commit comments

Comments
 (0)