Skip to content

Commit

Permalink
fix: add compliance file name ellipsis support
Browse files Browse the repository at this point in the history
  • Loading branch information
douxc committed Feb 10, 2025
1 parent 9bff9b5 commit 2b95e54
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions web/app/components/header/account-dropdown/compliance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default function Compliance() {
>
<Menu.Items
className={cn(
`absolute top-[1px] w-[320px] max-h-[70vh] overflow-y-scroll z-10 bg-components-panel-bg-blur backdrop-blur-[5px] border-[0.5px] border-components-panel-border
`absolute top-[1px] w-[337px] max-h-[70vh] overflow-y-scroll z-10 bg-components-panel-bg-blur backdrop-blur-[5px] border-[0.5px] border-components-panel-border
divide-y divide-divider-subtle origin-top-right rounded-xl focus:outline-none shadow-lg -translate-x-full
`,
)}
Expand All @@ -141,7 +141,7 @@ export default function Compliance() {
active && 'bg-state-base-hover',
)}>
<Soc2 className='flex-shrink-0 size-7' />
<div className='flex-grow system-md-regular text-text-secondary px-1'>{t('common.compliance.soc2Type1')}</div>
<div className='system-md-regular flex-grow text-text-secondary px-1 truncate'>{t('common.compliance.soc2Type1')}</div>
<UpgradeOrDownload doc_name={DocName.SOC2_Type_I} />
</div>}
</Menu.Item>
Expand All @@ -151,7 +151,7 @@ export default function Compliance() {
active && 'bg-state-base-hover',
)}>
<Soc2 className='flex-shrink-0 size-7' />
<div className='flex-grow system-md-regular text-text-secondary px-1'>{t('common.compliance.soc2Type2')}</div>
<div className='system-md-regular flex-grow text-text-secondary px-1 truncate'>{t('common.compliance.soc2Type2')}</div>
<UpgradeOrDownload doc_name={DocName.SOC2_Type_II} />
</div>}
</Menu.Item>
Expand All @@ -161,7 +161,7 @@ export default function Compliance() {
active && 'bg-state-base-hover',
)}>
<Iso className='flex-shrink-0 size-7' />
<div className='flex-grow system-md-regular text-text-secondary px-1'>{t('common.compliance.iso27001')}</div>
<div className='system-md-regular flex-grow text-text-secondary px-1 truncate'>{t('common.compliance.iso27001')}</div>
<UpgradeOrDownload doc_name={DocName.ISO_27001} />
</div>}
</Menu.Item>
Expand All @@ -171,7 +171,7 @@ export default function Compliance() {
active && 'bg-state-base-hover',
)}>
<Gdpr className='flex-shrink-0 size-7' />
<div className='flex-grow system-md-regular text-text-secondary px-1'>{t('common.compliance.gdpr')}</div>
<div className='system-md-regular flex-grow text-text-secondary px-1 truncate'>{t('common.compliance.gdpr')}</div>
<UpgradeOrDownload doc_name={DocName.GDPR} />
</div>}
</Menu.Item>
Expand Down

0 comments on commit 2b95e54

Please sign in to comment.