Skip to content

Commit

Permalink
chore: update sharebox styles to show overflow state
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenle committed Mar 11, 2024
1 parent 5735cbd commit cd2f824
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/root-cms/ui/components/ShareBox/ShareBox.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@
margin-top: 12px;
max-height: 500px;
overflow: auto;
padding: 20px;
border: 1px solid var(--color-border);
}

.ShareBox__user__email {
padding: 0 11px;
overflow: hidden;
text-overflow: ellipsis;
}
5 changes: 2 additions & 3 deletions packages/root-cms/ui/components/ShareBox/ShareBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ import {
import {useEffect, useState} from 'preact/hooks';

import {joinClassNames} from '../../utils/classes.js';
import {notifyErrors} from '../../utils/notifications.js';
import {sortByKey} from '../../utils/objects.js';
import {Text} from '../Text/Text.js';
import './ShareBox.css';
import {showNotification} from '@mantine/notifications';
import {notifyErrors} from '../../utils/notifications.js';

export interface ShareBoxProps {
className?: string;
Expand Down Expand Up @@ -68,7 +67,7 @@ export function ShareBox(props: ShareBoxProps) {
setRoles((current) => {
return {
...current,
[email]: 'EDITOR',
[email]: 'VIEWER',
};
});
});
Expand Down

0 comments on commit cd2f824

Please sign in to comment.