Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/src/cmsData/add_stack.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"stack_locale_description": "Select a language",
"stack_locales": "Set Master Language",
"stack_name": "Name",
"stack_name_placeholder": "Enter stack Name",
"stack_name_placeholder": "Enter stack name",
"tags": [],
"title": "Create New Stack",
"updated_at": "2024-02-13T04:44:57.846Z",
Expand Down
6 changes: 5 additions & 1 deletion ui/src/components/Card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
border: 1px solid $color-brand-secondary-lightest;
transition: box-shadow 0.3s ease;
width: 20rem;
&:hover {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .12), 0 0 2px 0 rgba(0, 0, 0, .14);
cursor: pointer;
}
}

/**
Expand Down Expand Up @@ -41,6 +45,7 @@
padding: 0;
white-space: normal;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}

Expand All @@ -63,7 +68,6 @@
* Styles for the content of the ProjectCard component.
*/
.ProjectCard__content {
// margin: 0 1rem 2rem;
padding: 0;
text-align: center;
}
Expand Down
16 changes: 9 additions & 7 deletions ui/src/pages/Projects/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,17 @@ const Projects = () => {
const fetchData = async () => {
//check if offline CMS data field is set to true, if then read data from cms data file.
getCMSDataFromFile(CS_ENTRIES.PROJECTS)
.then((data) => setData(data))
.catch((err) => {
console.error(err);
setData({});
});

// fetchProjects();
.then((data) => setData(data))
.catch((err) => {
console.error(err);
setData({});
});
};

useEffect(()=>{
dispatch(getUserDetails());
},[dispatch]);

useEffect(() => {
fetchData();
}, []);
Expand Down