fix: module header hide on bigger screens (#3590)

* fix: module header hide on bigger screens

* fix: Add Inbox back on mobile

---------

Co-authored-by: Maximilian Engel <maximilian.engel@swg.de>
Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
This commit is contained in:
Ramesh Kumar Chandra 2024-02-08 00:16:00 +05:30 committed by GitHub
parent 729b6ac79e
commit 346c6f5414
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 7 deletions

View File

@ -200,8 +200,8 @@ export const ProjectIssuesHeader: React.FC = observer(() => {
handleDisplayPropertiesUpdate={handleDisplayProperties} handleDisplayPropertiesUpdate={handleDisplayProperties}
/> />
</FiltersDropdown> </FiltersDropdown>
</div>
{currentProjectDetails?.inbox_view && inboxDetails && ( {currentProjectDetails?.inbox_view && inboxDetails && (
<Link href={`/${workspaceSlug}/projects/${projectId}/inbox/${inboxDetails?.id}`}> <Link href={`/${workspaceSlug}/projects/${projectId}/inbox/${inboxDetails?.id}`}>
<span> <span>
<Button variant="neutral-primary" size="sm" className="relative"> <Button variant="neutral-primary" size="sm" className="relative">
@ -214,9 +214,7 @@ export const ProjectIssuesHeader: React.FC = observer(() => {
</Button> </Button>
</span> </span>
</Link> </Link>
)} )}
</div>
{canUserCreateIssue && ( {canUserCreateIssue && (
<> <>
<Button className="hidden md:block" onClick={() => setAnalyticsModal(true)} variant="neutral-primary" size="sm"> <Button className="hidden md:block" onClick={() => setAnalyticsModal(true)} variant="neutral-primary" size="sm">

View File

@ -77,7 +77,7 @@ export const ModuleMobileHeader = () => {
); );
return ( return (
<> <div className="block md:hidden">
<ProjectAnalyticsModal <ProjectAnalyticsModal
isOpen={analyticsModal} isOpen={analyticsModal}
onClose={() => setAnalyticsModal(false)} onClose={() => setAnalyticsModal(false)}
@ -157,6 +157,6 @@ export const ModuleMobileHeader = () => {
Analytics Analytics
</button> </button>
</div> </div>
</> </div>
); );
}; };