File tree 2 files changed +26
-4
lines changed
site/src/pages/UsersPage/UsersTable
2 files changed +26
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { useTheme } from "@emotion/react" ;
2
2
import { type Group } from "api/typesGenerated" ;
3
-
4
3
import { Stack } from "components/Stack/Stack" ;
5
4
import { Avatar } from "components/Avatar/Avatar" ;
6
5
import { OverflowY } from "components/OverflowY/OverflowY" ;
7
-
8
6
import TableCell from "@mui/material/TableCell" ;
9
7
import Button from "@mui/material/Button" ;
10
8
import List from "@mui/material/List" ;
11
9
import ListItem from "@mui/material/ListItem" ;
12
10
import GroupIcon from "@mui/icons-material/Group" ;
13
-
14
11
import {
15
12
Popover ,
16
13
PopoverTrigger ,
@@ -68,7 +65,23 @@ export function UserGroupsCell({ userGroups }: GroupsCellProps) {
68
65
</ Button >
69
66
</ PopoverTrigger >
70
67
71
- < PopoverContent disableScrollLock disableRestoreFocus >
68
+ < PopoverContent
69
+ disableScrollLock
70
+ disableRestoreFocus
71
+ css = { {
72
+ ".MuiPaper-root" : {
73
+ minWidth : "auto" ,
74
+ } ,
75
+ } }
76
+ anchorOrigin = { {
77
+ vertical : "top" ,
78
+ horizontal : "center" ,
79
+ } }
80
+ transformOrigin = { {
81
+ vertical : "bottom" ,
82
+ horizontal : "center" ,
83
+ } }
84
+ >
72
85
< OverflowY maxHeight = { 400 } >
73
86
< List
74
87
component = "ul"
Original file line number Diff line number Diff line change @@ -119,8 +119,17 @@ function OverflowRolePill({ roles }: OverflowRolePillProps) {
119
119
rowGap : theme . spacing ( 1.5 ) ,
120
120
padding : theme . spacing ( 1.5 , 2 ) ,
121
121
alignContent : "space-around" ,
122
+ minWidth : "auto" ,
122
123
} ,
123
124
} }
125
+ anchorOrigin = { {
126
+ vertical : - 4 ,
127
+ horizontal : "center" ,
128
+ } }
129
+ transformOrigin = { {
130
+ vertical : "bottom" ,
131
+ horizontal : "center" ,
132
+ } }
124
133
>
125
134
{ roles . map ( ( role ) => (
126
135
< Pill
You can’t perform that action at this time.
0 commit comments