Skip to content

Commit

Permalink
[Account] Prevent account info overflowing on kebab menu (#4555)
Browse files Browse the repository at this point in the history
  • Loading branch information
bharatkashyap authored Jan 10, 2025
1 parent 3d1a517 commit 26a9ee0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ DemoPageContent.propTypes = {
function AccountSidebarPreview(props) {
const { handleClick, open, mini } = props;
return (
<Stack direction="column" p={0} overflow="hidden">
<Stack direction="column" p={0}>
<Divider />
<AccountPreview
variant={mini ? 'condensed' : 'expanded'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function DemoPageContent({ pathname }: { pathname: string }) {
function AccountSidebarPreview(props: AccountPreviewProps & { mini: boolean }) {
const { handleClick, open, mini } = props;
return (
<Stack direction="column" p={0} overflow="hidden">
<Stack direction="column" p={0}>
<Divider />
<AccountPreview
variant={mini ? 'condensed' : 'expanded'}
Expand Down
4 changes: 2 additions & 2 deletions packages/toolpad-core/src/Account/AccountPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ function AccountPreview(props: AccountPreviewProps) {
if (variant === 'expanded') {
return (
<Stack direction="row" justifyContent="space-between" sx={{ py: 1, px: 2, gap: 2, ...sx }}>
<Stack direction="row" justifyContent="flex-start" spacing={2}>
<Stack direction="row" justifyContent="flex-start" spacing={2} overflow="hidden">
{avatarContent}
<Stack direction="column" justifyContent="space-evenly">
<Stack direction="column" justifyContent="space-evenly" overflow="hidden">
<Typography variant="body2" fontWeight="bolder" noWrap>
{session.user?.name}
</Typography>
Expand Down

0 comments on commit 26a9ee0

Please sign in to comment.