1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-04 00:18:40 +01: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',
Cell: ({ row: { original: rowUser } }: any) => (
<ActionCell>
<Tooltip
title="Edit user"
arrow
placement="bottom-end"
describeChild
enterDelay={1000}
>
<Tooltip title="Edit user" arrow describeChild>
<IconButton
onClick={() => {
setSelectedUser(rowUser);
@ -151,9 +145,7 @@ export const Group: VFC = () => {
<Tooltip
title="Remove user from group"
arrow
placement="bottom-end"
describeChild
enterDelay={1000}
>
<IconButton
onClick={() => {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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