1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-26 13:48:33 +02:00

fix: small ui fixes related to groups and tooltips (#1167)

This commit is contained in:
Nuno Góis 2022-07-28 14:27:38 +01:00 committed by GitHub
parent d7b168e4a8
commit 4e61cf22c0
7 changed files with 15 additions and 32 deletions

View File

@ -132,13 +132,7 @@ export const Group: VFC = () => {
align: 'center', align: 'center',
Cell: ({ row: { original: rowUser } }: any) => ( Cell: ({ row: { original: rowUser } }: any) => (
<ActionCell> <ActionCell>
<Tooltip <Tooltip title="Edit user" arrow describeChild>
title="Edit user"
arrow
placement="bottom-end"
describeChild
enterDelay={1000}
>
<IconButton <IconButton
onClick={() => { onClick={() => {
setSelectedUser(rowUser); setSelectedUser(rowUser);
@ -151,9 +145,7 @@ export const Group: VFC = () => {
<Tooltip <Tooltip
title="Remove user from group" title="Remove user from group"
arrow arrow
placement="bottom-end"
describeChild describeChild
enterDelay={1000}
> >
<IconButton <IconButton
onClick={() => { onClick={() => {

View File

@ -24,6 +24,10 @@ const StyledInput = styled(Input)(({ theme }) => ({
marginBottom: theme.spacing(2), marginBottom: theme.spacing(2),
})); }));
const StyledGroupFormUsersTableWrapper = styled('div')(({ theme }) => ({
marginBottom: theme.spacing(6),
}));
const StyledButtonContainer = styled('div')(() => ({ const StyledButtonContainer = styled('div')(() => ({
marginTop: 'auto', marginTop: 'auto',
display: 'flex', display: 'flex',
@ -101,10 +105,12 @@ export const GroupForm: FC<IGroupForm> = ({
users={users} users={users}
setUsers={setUsers} setUsers={setUsers}
/> />
<GroupFormUsersTable <StyledGroupFormUsersTableWrapper>
users={users} <GroupFormUsersTable
setUsers={setUsers} users={users}
/> setUsers={setUsers}
/>
</StyledGroupFormUsersTableWrapper>
</> </>
} }
/> />

View File

@ -83,9 +83,7 @@ export const GroupFormUsersTable: VFC<IGroupFormUsersTableProps> = ({
<Tooltip <Tooltip
title="Remove user from group" title="Remove user from group"
arrow arrow
placement="bottom-end"
describeChild describeChild
enterDelay={1000}
> >
<IconButton <IconButton
onClick={() => onClick={() =>

View File

@ -102,11 +102,9 @@ export const GroupCard = ({ group }: IGroupCardProps) => {
))} ))}
elseShow={ elseShow={
<Tooltip <Tooltip
title="This project is not used in any project" title="This group is not used in any project"
arrow arrow
placement="bottom-end"
describeChild describeChild
enterDelay={1000}
> >
<Badge>Not used</Badge> <Badge>Not used</Badge>
</Tooltip> </Tooltip>

View File

@ -52,13 +52,7 @@ export const GroupCardActions: FC<IGroupCardActions> = ({
e.stopPropagation(); e.stopPropagation();
}} }}
> >
<Tooltip <Tooltip title="Group actions" arrow describeChild>
title="Group actions"
arrow
placement="bottom-end"
describeChild
enterDelay={1000}
>
<IconButton <IconButton
id={id} id={id}
aria-controls={open ? menuId : undefined} aria-controls={open ? menuId : undefined}

View File

@ -59,13 +59,7 @@ export const ActionsCell: VFC<IActionsCellProps> = ({
return ( return (
<Box className={classes.cell}> <Box className={classes.cell}>
<Tooltip <Tooltip title="Feature toggle actions" arrow describeChild>
title="Feature toggle actions"
arrow
placement="bottom-end"
describeChild
enterDelay={1000}
>
<IconButton <IconButton
id={id} id={id}
aria-controls={open ? menuId : undefined} aria-controls={open ? menuId : undefined}

View File

@ -23,6 +23,7 @@ import { sortTypes } from 'utils/sortTypes';
const StyledPageContent = styled(PageContent)(({ theme }) => ({ const StyledPageContent = styled(PageContent)(({ theme }) => ({
height: '100vh', height: '100vh',
overflow: 'auto',
padding: theme.spacing(7.5, 6), padding: theme.spacing(7.5, 6),
'& .header': { '& .header': {
padding: theme.spacing(0, 0, 2, 0), padding: theme.spacing(0, 0, 2, 0),