diff --git a/rdmo/projects/assets/js/components/helper/PendingInvitations.js b/rdmo/projects/assets/js/components/helper/PendingInvitations.js
index 8d60991a96..8ef52aa527 100644
--- a/rdmo/projects/assets/js/components/helper/PendingInvitations.js
+++ b/rdmo/projects/assets/js/components/helper/PendingInvitations.js
@@ -1,35 +1,26 @@
import React from 'react'
import PropTypes from 'prop-types'
-const columnStyle = { color: '#666', width: '25%', paddingLeft: '10px' }
-const tableStyle = { width: '100%' }
-
const PendingInvitations = ({ invitations }) => {
const baseUrl = window.location.origin
return (
-
-
- {invitations?.map(item => (
-
-
- {item.project_title}
- {/* {item.project_title}
- {' '.repeat(maxProjectTitleLength - item.project_title.length)} */}
- {/* {item.project_title} */}
- |
- {/* {gettext(item.role)} | */}
- {gettext(item.role).charAt(0).toUpperCase() + gettext(item.role).slice(1)} |
-
-
- |
-
-
- |
-
- ))}
-
-
+
+ {invitations?.map(item => (
+
+
+ {item.project_title}
+
+
+ {gettext(item.role).charAt(0).toUpperCase() + gettext(item.role).slice(1)}
+
+
+
+
+
+
+ ))}
+
)
}
diff --git a/rdmo/projects/assets/js/components/main/Projects.js b/rdmo/projects/assets/js/components/main/Projects.js
index f3e3c4a693..ba97424821 100644
--- a/rdmo/projects/assets/js/components/main/Projects.js
+++ b/rdmo/projects/assets/js/components/main/Projects.js
@@ -94,11 +94,11 @@ const Projects = ({ config, configActions, currentUserObject, projectsActions, p
if (myProjects) {
visibleColumns.splice(2, 0, 'role')
- columnWidths = ['25%', '20%', '20%', '20%', '5%']
+ columnWidths = ['35%', '20%', '20%', '20%', '5%']
} else {
visibleColumns.splice(2, 0, 'created')
visibleColumns.splice(2, 0, 'owner')
- columnWidths = ['25%', '10%', '20%', '20%', '20%', '5%']
+ columnWidths = ['35%', '10%', '20%', '20%', '20%', '5%']
}
const cellFormatters = {
diff --git a/rdmo/projects/assets/scss/projects.scss b/rdmo/projects/assets/scss/projects.scss
index d0851cc6a2..a4bc53705a 100644
--- a/rdmo/projects/assets/scss/projects.scss
+++ b/rdmo/projects/assets/scss/projects.scss
@@ -14,6 +14,9 @@ a.disabled {
.w-100 {
width: 100%;
}
+.w-25 {
+ width: 25%;
+}
.mt-0 {
margin-top: 0;
}
@@ -222,3 +225,24 @@ a.disabled {
text-decoration: none;
background-color: #eeeeee;
}
+
+.row-container {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.row-container > div {
+ color: #666;
+ padding-left: 10px;
+}
+
+.row-container:not(:last-child):after { /* Add line between each container element */
+ content: '';
+ width: 100%;
+ height: 1px;
+ background-color: #ccc;
+ margin-top: 10px;
+ margin-bottom: 10px;
+}
diff --git a/rdmo/projects/static/projects/css/projects.css b/rdmo/projects/static/projects/css/projects.css
index 55288a92fd..0521677cea 100644
--- a/rdmo/projects/static/projects/css/projects.css
+++ b/rdmo/projects/static/projects/css/projects.css
@@ -9464,6 +9464,10 @@ a.disabled {
width: 100%;
}
+.w-25 {
+ width: 25%;
+}
+
.mt-0 {
margin-top: 0;
}
@@ -9688,3 +9692,24 @@ a.disabled {
text-decoration: none;
background-color: #eeeeee;
}
+
+.row-container {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.row-container > div {
+ color: #666;
+ padding-left: 10px;
+}
+
+.row-container:not(:last-child):after { /* Add line between each container element */
+ content: "";
+ width: 100%;
+ height: 1px;
+ background-color: #ccc;
+ margin-top: 10px;
+ margin-bottom: 10px;
+}