Skip to content

Commit

Permalink
Fix overflow for long continuous strings
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell committed Jun 24, 2024
1 parent dd4fd31 commit 3c5cf08
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions frontend/web/components/SAMLAttributeMappingTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Button from './base/forms/Button'
import Icon from './Icon'
import { SAMLAttributeMapping } from 'common/types/responses'
import Format from 'common/utils/format'
import Tooltip from './Tooltip'

type SAMLAttributeMappingTableType = {
samlConfigurationId: number
Expand Down Expand Up @@ -60,9 +61,22 @@ const SAMLAttributeMappingTable: FC<SAMLAttributeMappingTableType> = ({
</div>
</Flex>
<Flex className='table-column px-3'>
<div className='table-column' style={{ width: '305px' }}>
<Tooltip
title={
<div
className='table-column'
style={{
overflow: 'hidden',
textOverflow: 'ellipsis',
width: '305px',
}}
>
{attribute.idp_attribute_name}
</div>
}
>
{attribute.idp_attribute_name}
</div>
</Tooltip>
</Flex>
<div className='table-column'>
<Button
Expand Down

0 comments on commit 3c5cf08

Please sign in to comment.