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:
parent
d7b168e4a8
commit
4e61cf22c0
@ -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={() => {
|
||||||
|
@ -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>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
@ -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={() =>
|
||||||
|
@ -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>
|
||||||
|
@ -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}
|
||||||
|
@ -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}
|
||||||
|
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user