Skip to content

Commit

Permalink
sidebar ui fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mugishayannick authored and Kalisa11 committed Dec 18, 2023
1 parent 4a4c71c commit 5ac1ec2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions renderer/src/components/Projects/ProjectRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ const ProjectRow = ({
}
return 0;
}

return (
<tbody className="bg-white divide-y divide-gray-200" id="projects-list-body">
{projects?.length === 0 && (
{((projects?.length === 0 && filteredProjects?.length > 0) || (!showArchived && projects?.length === archivedProjects?.length)) && (
<tr>
<td colSpan="7" className="space-y-7 px-6 py-28 whitespace-nowrap text-center">
<h2 className="font-medium text-gray-500 tracking-wide">You don&apos;t have any projects yet</h2>
Expand All @@ -87,12 +88,12 @@ const ProjectRow = ({
</tr>
)}
{
projects?.length !== 0 && filteredProjects?.length === 0 && (
<tr>
<td colSpan="7" className="space-y-7 px-6 py-28 whitespace-nowrap text-center">
<h2 className="font-medium text-gray-500 tracking-wide">No projects found. Try a different search term.</h2>
</td>
</tr>
projects?.length > 0 && filteredProjects?.length === 0 && (
<tr>
<td colSpan="7" className="space-y-7 px-6 py-28 whitespace-nowrap text-center">
<h2 className="font-medium text-gray-500 tracking-wide">No projects found. Try a different search term.</h2>
</td>
</tr>
)
}
{
Expand Down
2 changes: 1 addition & 1 deletion renderer/src/layouts/projects/SideBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function SideBar() {
<Link
href="/projects"
aria-label="projectList"
className="flex flex-col items-center"
className="flex flex-col items-center px-2"
>

<ProjectsIcon
Expand Down

0 comments on commit 5ac1ec2

Please sign in to comment.