diff --git a/src/app/(main)/settings/layout.module.css b/src/app/(main)/settings/layout.module.css index c56ec8bb..19162ef5 100644 --- a/src/app/(main)/settings/layout.module.css +++ b/src/app/(main)/settings/layout.module.css @@ -16,7 +16,11 @@ min-height: 50vh; } -@media only screen and (max-width: 768px) { +@media only screen and (max-width: 992px) { + .layout { + grid-template-columns: 1fr; + } + .menu { display: none; } diff --git a/src/app/(main)/settings/websites/WebsitesTable.js b/src/app/(main)/settings/websites/WebsitesTable.js index 3c0cbc46..f8b12923 100644 --- a/src/app/(main)/settings/websites/WebsitesTable.js +++ b/src/app/(main)/settings/websites/WebsitesTable.js @@ -28,39 +28,41 @@ export function WebsitesTable({ {row => row.user.username} )} - - {row => { - const { - id, - user: { id: ownerId }, - } = row; + {showActions && ( + + {row => { + const { + id, + user: { id: ownerId }, + } = row; - return ( - <> - {showActions && allowEdit && (!showTeam || ownerId === user.id) && ( - - - - )} - {showActions && allowView && ( - - - - )} - - ); - }} - + return ( + <> + {allowEdit && (!showTeam || ownerId === user.id) && ( + + + + )} + {allowView && ( + + + + )} + + ); + }} + + )} {children} ); diff --git a/src/components/common/DataTable.module.css b/src/components/common/DataTable.module.css index 4ca52b74..6e925bc0 100644 --- a/src/components/common/DataTable.module.css +++ b/src/components/common/DataTable.module.css @@ -20,6 +20,7 @@ .body { display: flex; position: relative; + overflow-x: auto; } .body td { @@ -27,6 +28,7 @@ gap: 10px; min-height: 70px; align-items: center; + min-width: min-content; } .pager {