mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
Fix css issue in room rights
This commit is contained in:
parent
ca21e833c8
commit
a26084b976
@ -52,8 +52,7 @@
|
||||
width: 400px;
|
||||
|
||||
.list-container {
|
||||
min-height: 100px;
|
||||
max-height: 100px;
|
||||
height: 100px;
|
||||
|
||||
.list-item {
|
||||
background-color: $grid-active-bg-color;
|
||||
|
@ -23,22 +23,24 @@ export const NavigatorRoomSettingsRightsTabView: FC<NavigatorRoomSettingsTabView
|
||||
}, [ roomSettingsData, handleChange ]);
|
||||
|
||||
return (
|
||||
<Grid overflow="auto">
|
||||
<Grid>
|
||||
<Column size={ 6 }>
|
||||
<Text bold>
|
||||
{ LocalizeText('navigator.flatctrls.userswithrights', [ 'displayed', 'total' ], [ roomSettingsData.usersWithRights.size.toString(), roomSettingsData.usersWithRights.size.toString() ]) }
|
||||
</Text>
|
||||
<Column fullWidth className="bg-white rounded list-container p-2" overflow="auto" gap={ 1 }>
|
||||
{ Array.from(roomSettingsData.usersWithRights.entries()).map(([id, name], index) =>
|
||||
{
|
||||
return (
|
||||
<Flex key={ index } alignItems="center" gap={ 1 } overflow="hidden">
|
||||
<UserProfileIconView userName={ name } />
|
||||
<Text pointer grow key={index} onClick={ event => removeUserRights(id) }> { name }</Text>
|
||||
</Flex>
|
||||
);
|
||||
}) }
|
||||
</Column>
|
||||
<Flex overflow="hidden" className="bg-white rounded list-container p-2">
|
||||
<Column fullWidth overflow="auto" gap={ 1 }>
|
||||
{ Array.from(roomSettingsData.usersWithRights.entries()).map(([id, name], index) =>
|
||||
{
|
||||
return (
|
||||
<Flex key={ index } shrink alignItems="center" gap={ 1 } overflow="hidden">
|
||||
<UserProfileIconView userName={ name } />
|
||||
<Text pointer grow key={index} onClick={ event => removeUserRights(id) }> { name }</Text>
|
||||
</Flex>
|
||||
);
|
||||
}) }
|
||||
</Column>
|
||||
</Flex>
|
||||
<Button variant="danger" disabled={ !roomSettingsData.usersWithRights.size } onClick={ removeAllRights } >
|
||||
{ LocalizeText('navigator.flatctrls.clear') }
|
||||
</Button>
|
||||
|
Loading…
Reference in New Issue
Block a user