Skip to content

Commit

Permalink
Truncate
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminleonard committed Nov 26, 2024
1 parent ae72684 commit 6f4786a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/pages/project/instances/instance/InstancePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import { PageHeader, PageTitle } from '~/ui/lib/PageHeader'
import { PropertiesTable } from '~/ui/lib/PropertiesTable'
import { Spinner } from '~/ui/lib/Spinner'
import { Tooltip } from '~/ui/lib/Tooltip'
import { Truncate } from '~/ui/lib/Truncate'
import { truncate, Truncate } from '~/ui/lib/Truncate'
import { pb } from '~/util/path-builder'
import { GiB } from '~/util/units'

Expand Down Expand Up @@ -333,8 +333,9 @@ export function ResizeInstanceModal({
variant="info"
content={
<div>
Current ({instance.name}): {instance.ncpus} vCPUs /{' '}
{instance.memory / GiB} GiB
Current (
<span className="text-sans-semi-md">{truncate(instance.name, 20)}</span>
): {instance.ncpus} vCPUs / {instance.memory / GiB} GiB
</div>
}
/>
Expand Down

0 comments on commit 6f4786a

Please sign in to comment.