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:
parent
d7b168e4a8
commit
4e61cf22c0
@ -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={() => {
|
||||
|
@ -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>
|
||||
</>
|
||||
}
|
||||
/>
|
||||
|
@ -83,9 +83,7 @@ export const GroupFormUsersTable: VFC<IGroupFormUsersTableProps> = ({
|
||||
<Tooltip
|
||||
title="Remove user from group"
|
||||
arrow
|
||||
placement="bottom-end"
|
||||
describeChild
|
||||
enterDelay={1000}
|
||||
>
|
||||
<IconButton
|
||||
onClick={() =>
|
||||
|
@ -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>
|
||||
|
@ -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}
|
||||
|
@ -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}
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user