Skip to content

Commit 629dd66

Browse files
authored
Fix anonymous access rule not displayed due to style (#2820)
1 parent fc9319e commit 629dd66

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

portal-ui/src/screens/Console/Buckets/BucketDetails/AccessRulePanel.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { useSelector } from "react-redux";
1919
import { useParams } from "react-router-dom";
2020
import { Theme } from "@mui/material/styles";
2121
import { AddIcon, Button } from "mds";
22-
import { Paper } from "@mui/material";
2322
import createStyles from "@mui/styles/createStyles";
2423
import { ErrorResponseHandler } from "../../../../common/types";
2524
import TableWrapper from "../../Common/TableWrapper/TableWrapper";
@@ -219,7 +218,7 @@ const AccessRule = () => {
219218
</TooltipWrapper>
220219
</SecureComponent>
221220
</Grid>
222-
<Paper className={classes.tableBlock}>
221+
<Grid item sx={{ border: "#EAEDEE 1px solid" }}>
223222
<SecureComponent
224223
scopes={[IAM_SCOPES.S3_GET_BUCKET_POLICY, IAM_SCOPES.S3_GET_ACTIONS]}
225224
resource={bucketName}
@@ -229,7 +228,13 @@ const AccessRule = () => {
229228
noBackground={true}
230229
itemActions={AccessRuleActions}
231230
columns={[
232-
{ label: "Prefix", elementKey: "prefix" },
231+
{
232+
label: "Prefix",
233+
elementKey: "prefix",
234+
renderFunction: (prefix: string) => {
235+
return prefix || "/";
236+
},
237+
},
233238
{ label: "Access", elementKey: "access" },
234239
]}
235240
isLoading={loadingAccessRules}
@@ -238,7 +243,7 @@ const AccessRule = () => {
238243
idField="prefix"
239244
/>
240245
</SecureComponent>
241-
</Paper>
246+
</Grid>
242247
</Fragment>
243248
);
244249
};

0 commit comments

Comments
 (0)