@@ -142,6 +142,9 @@ const styles = (theme: Theme) =>
142
142
"&.actionsPanelOpen" : {
143
143
minHeight : "100%" ,
144
144
} ,
145
+ "@media (max-width: 800px)" : {
146
+ width : 800 ,
147
+ } ,
145
148
} ,
146
149
"@global" : {
147
150
".rowLine:hover .iconFileElm" : {
@@ -186,6 +189,21 @@ const styles = (theme: Theme) =>
186
189
breadcrumbsContainer : {
187
190
padding : "12px 14px 5px" ,
188
191
} ,
192
+ parentWrapper : {
193
+ "@media (max-width: 800px)" : {
194
+ overflowX : "auto" ,
195
+ } ,
196
+ } ,
197
+ fullContainer : {
198
+ "@media (max-width: 799px)" : {
199
+ width : 0 ,
200
+ } ,
201
+ } ,
202
+ hideListOnSmall : {
203
+ "@media (max-width: 799px)" : {
204
+ visibility : "hidden" ,
205
+ } ,
206
+ } ,
189
207
...objectBrowserExtras ,
190
208
...objectBrowserCommon ,
191
209
...containerForHeader ( theme . spacing ( 4 ) ) ,
@@ -454,7 +472,10 @@ const ListObjects = ({
454
472
setLoadingVersioning ( false ) ;
455
473
} )
456
474
. catch ( ( err : ErrorResponseHandler ) => {
457
- console . error ( "Error Getting Object Versioning Status: " , err . detailedError ) ;
475
+ console . error (
476
+ "Error Getting Object Versioning Status: " ,
477
+ err . detailedError
478
+ ) ;
458
479
setLoadingVersioning ( false ) ;
459
480
} ) ;
460
481
} else {
@@ -474,7 +495,10 @@ const ListObjects = ({
474
495
setLoadingLocking ( false ) ;
475
496
} )
476
497
. catch ( ( err : ErrorResponseHandler ) => {
477
- console . error ( "Error Getting Object Locking Status: " , err . detailedError ) ;
498
+ console . error (
499
+ "Error Getting Object Locking Status: " ,
500
+ err . detailedError
501
+ ) ;
478
502
setLoadingLocking ( false ) ;
479
503
} ) ;
480
504
} else {
@@ -1321,81 +1345,90 @@ const ListObjects = ({
1321
1345
}
1322
1346
actions = {
1323
1347
< Fragment >
1324
- < RBIconButton
1325
- id = { "rewind-objects-list" }
1326
- tooltip = { "Rewind Bucket" }
1327
- text = { "Rewind" }
1328
- icon = {
1329
- < Badge
1330
- badgeContent = " "
1331
- color = "secondary"
1332
- variant = "dot"
1333
- invisible = { ! rewindEnabled }
1334
- className = { classes . badgeOverlap }
1335
- sx = { { height : 12 } }
1336
- >
1337
- < HistoryIcon />
1338
- </ Badge >
1339
- }
1340
- color = "primary"
1341
- variant = { "outlined" }
1342
- onClick = { ( ) => {
1343
- setRewindSelect ( true ) ;
1344
- } }
1345
- disabled = {
1346
- ! isVersioned ||
1347
- ! hasPermission ( bucketName , [ IAM_SCOPES . S3_PUT_OBJECT ] )
1348
- }
1349
- />
1350
- < RBIconButton
1351
- id = { "refresh-objects-list" }
1352
- tooltip = { "Reload List" }
1353
- text = { "Refresh" }
1354
- icon = { < RefreshIcon /> }
1355
- color = "primary"
1356
- variant = { "outlined" }
1357
- onClick = { ( ) => {
1358
- if ( versionsMode ) {
1359
- setLoadingVersions ( true ) ;
1360
- } else {
1361
- setLoadingObjectsList ( true ) ;
1348
+ < div className = { classes . actionsSection } >
1349
+ < RBIconButton
1350
+ id = { "rewind-objects-list" }
1351
+ tooltip = { "Rewind Bucket" }
1352
+ text = { "Rewind" }
1353
+ icon = {
1354
+ < Badge
1355
+ badgeContent = " "
1356
+ color = "secondary"
1357
+ variant = "dot"
1358
+ invisible = { ! rewindEnabled }
1359
+ className = { classes . badgeOverlap }
1360
+ sx = { { height : 16 } }
1361
+ >
1362
+ < HistoryIcon
1363
+ style = { {
1364
+ minWidth : 16 ,
1365
+ minHeight : 16 ,
1366
+ width : 16 ,
1367
+ height : 16 ,
1368
+ } }
1369
+ />
1370
+ </ Badge >
1362
1371
}
1363
- } }
1364
- disabled = {
1365
- ! hasPermission ( bucketName , [ IAM_SCOPES . S3_LIST_BUCKET ] ) ||
1366
- rewindEnabled
1367
- }
1368
- />
1369
- < input
1370
- type = "file"
1371
- multiple
1372
- onChange = { handleUploadButton }
1373
- style = { { display : "none" } }
1374
- ref = { fileUpload }
1375
- />
1376
- < input
1377
- type = "file"
1378
- multiple
1379
- onChange = { handleUploadButton }
1380
- style = { { display : "none" } }
1381
- ref = { folderUpload }
1382
- />
1383
- < UploadFilesButton
1384
- bucketName = { bucketName }
1385
- uploadPath = { uploadPath . join ( "/" ) }
1386
- uploadFileFunction = { ( closeMenu ) => {
1387
- if ( fileUpload && fileUpload . current ) {
1388
- fileUpload . current . click ( ) ;
1372
+ color = "primary"
1373
+ variant = { "outlined" }
1374
+ onClick = { ( ) => {
1375
+ setRewindSelect ( true ) ;
1376
+ } }
1377
+ disabled = {
1378
+ ! isVersioned ||
1379
+ ! hasPermission ( bucketName , [ IAM_SCOPES . S3_PUT_OBJECT ] )
1389
1380
}
1390
- closeMenu ( ) ;
1391
- } }
1392
- uploadFolderFunction = { ( closeMenu ) => {
1393
- if ( folderUpload && folderUpload . current ) {
1394
- folderUpload . current . click ( ) ;
1381
+ />
1382
+ < RBIconButton
1383
+ id = { "refresh-objects-list" }
1384
+ tooltip = { "Reload List" }
1385
+ text = { "Refresh" }
1386
+ icon = { < RefreshIcon /> }
1387
+ color = "primary"
1388
+ variant = { "outlined" }
1389
+ onClick = { ( ) => {
1390
+ if ( versionsMode ) {
1391
+ setLoadingVersions ( true ) ;
1392
+ } else {
1393
+ setLoadingObjectsList ( true ) ;
1394
+ }
1395
+ } }
1396
+ disabled = {
1397
+ ! hasPermission ( bucketName , [ IAM_SCOPES . S3_LIST_BUCKET ] ) ||
1398
+ rewindEnabled
1395
1399
}
1396
- closeMenu ( ) ;
1397
- } }
1398
- />
1400
+ />
1401
+ < input
1402
+ type = "file"
1403
+ multiple
1404
+ onChange = { handleUploadButton }
1405
+ style = { { display : "none" } }
1406
+ ref = { fileUpload }
1407
+ />
1408
+ < input
1409
+ type = "file"
1410
+ multiple
1411
+ onChange = { handleUploadButton }
1412
+ style = { { display : "none" } }
1413
+ ref = { folderUpload }
1414
+ />
1415
+ < UploadFilesButton
1416
+ bucketName = { bucketName }
1417
+ uploadPath = { uploadPath . join ( "/" ) }
1418
+ uploadFileFunction = { ( closeMenu ) => {
1419
+ if ( fileUpload && fileUpload . current ) {
1420
+ fileUpload . current . click ( ) ;
1421
+ }
1422
+ closeMenu ( ) ;
1423
+ } }
1424
+ uploadFolderFunction = { ( closeMenu ) => {
1425
+ if ( folderUpload && folderUpload . current ) {
1426
+ folderUpload . current . click ( ) ;
1427
+ }
1428
+ closeMenu ( ) ;
1429
+ } }
1430
+ />
1431
+ </ div >
1399
1432
</ Fragment >
1400
1433
}
1401
1434
/>
@@ -1426,7 +1459,7 @@ const ListObjects = ({
1426
1459
resource = { bucketName }
1427
1460
errorProps = { { disabled : true } }
1428
1461
>
1429
- < Grid item xs = { 12 } >
1462
+ < Grid item xs = { 12 } className = { classes . fullContainer } >
1430
1463
< Grid item xs = { 12 } className = { classes . breadcrumbsContainer } >
1431
1464
< BrowserBreadcrumbs
1432
1465
bucketName = { bucketName }
@@ -1443,6 +1476,7 @@ const ListObjects = ({
1443
1476
onChange = { setDeletedAction }
1444
1477
checked = { showDeleted }
1445
1478
overrideLabelClasses = { classes . labelStyle }
1479
+ className = { classes . overrideShowDeleted }
1446
1480
noTopMargin
1447
1481
/>
1448
1482
</ div >
@@ -1482,6 +1516,7 @@ const ListObjects = ({
1482
1516
1483
1517
return "" ;
1484
1518
} }
1519
+ parentClassName = { classes . parentWrapper }
1485
1520
/>
1486
1521
</ Grid >
1487
1522
</ SecureComponent >
@@ -1496,6 +1531,7 @@ const ListObjects = ({
1496
1531
closePanel = { ( ) => {
1497
1532
onClosePanel ( false ) ;
1498
1533
} }
1534
+ className = { `${ versionsMode ? classes . hideListOnSmall : "" } ` }
1499
1535
>
1500
1536
{ selectedObjects . length > 0 && (
1501
1537
< ActionsListSection
0 commit comments