Skip to content

Commit b71ab71

Browse files
authored
fix: Public Teams Modal Layout on Safari (#11069)
1 parent a201560 commit b71ab71

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

packages/client/components/DashNavList/PublicTeamsModal.tsx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,20 @@ const PublicTeamsModal = (props: Props) => {
3232

3333
return (
3434
<Dialog isOpen={isOpen} onClose={onClose}>
35-
<DialogContent className='z-10 overflow-scroll'>
35+
<DialogContent className='z-10 flex flex-col pr-0'>
3636
<DialogTitle>{`${publicTeamsCount} ${plural(publicTeamsCount, 'Public Team', 'Public Teams')}`}</DialogTitle>
37-
<DialogDescription>
37+
<DialogDescription className='pr-6'>
3838
Join as a Team Member on any public teams at{' '}
3939
<span className='font-semibold'>{orgName}</span>
4040
</DialogDescription>
41-
<hr className='my-2 border-t border-slate-300' />
42-
{publicTeams.map((team, index) => (
43-
<Fragment key={team.id}>
44-
<PublicTeamItem teamRef={team} />
45-
{index < publicTeams.length - 1 && <hr className='my-2 border-t border-slate-300' />}
46-
</Fragment>
47-
))}
41+
<div className='overflow-auto pr-6'>
42+
{publicTeams.map((team) => (
43+
<Fragment key={team.id}>
44+
<hr className='my-2 border-t border-slate-300' />
45+
<PublicTeamItem teamRef={team} />
46+
</Fragment>
47+
))}
48+
</div>
4849
</DialogContent>
4950
</Dialog>
5051
)

0 commit comments

Comments
 (0)