Skip to content

Commit

Permalink
fix(ui): truncate image tag that can overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bdebon committed Apr 27, 2023
1 parent c62a8d4 commit f09fa2e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ContainerRegistryResponse } from 'qovery-typescript-axios'
import { useCallback } from 'react'
import { IconEnum, isContainerJob } from '@qovery/shared/enums'
import { ApplicationEntity, LoadingStatus } from '@qovery/shared/interfaces'
import { Button, ButtonStyle, Skeleton } from '@qovery/shared/ui'
import { Button, ButtonStyle, Skeleton, Truncate } from '@qovery/shared/ui'

export interface AboutContainerProps {
loadingStatus?: LoadingStatus
Expand Down Expand Up @@ -34,7 +34,10 @@ export function AboutContainer(props: AboutContainerProps) {
Image name: <strong className="font-medium text-text-500">{getContainer()?.image_name}</strong>
</div>
<div className="mb-3 flex gap-3">
Image tag: <strong className="font-medium text-text-500">{getContainer()?.tag}</strong>
Image tag:{' '}
<strong className="font-medium text-text-500">
<Truncate truncateLimit={20} text={getContainer()?.tag || ''} />
</strong>
</div>
<div className="flex gap-3 items-center">
Registry:{' '}
Expand Down

0 comments on commit f09fa2e

Please sign in to comment.