diff --git a/web/core/components/core/modals/existing-issues-list-modal.tsx b/web/core/components/core/modals/existing-issues-list-modal.tsx index 238efb7a900..583829e6fa2 100644 --- a/web/core/components/core/modals/existing-issues-list-modal.tsx +++ b/web/core/components/core/modals/existing-issues-list-modal.tsx @@ -8,6 +8,7 @@ import { ISearchIssueResponse, TProjectIssuesSearchParams } from "@plane/types"; // ui import { Button, Loader, ToggleSwitch, Tooltip, TOAST_TYPE, setToast } from "@plane/ui"; // helpers +import { cn } from "@/helpers/common.helper"; import { getTabIndex } from "@/helpers/tab-indices.helper"; // hooks import useDebounce from "@/hooks/use-debounce"; @@ -244,9 +245,9 @@ export const ExistingIssuesListModal: React.FC = (props) => { htmlFor={`issue-${issue.id}`} value={issue} className={({ active }) => - `group flex w-full cursor-pointer select-none items-center justify-between gap-2 rounded-md px-3 py-2 my-0.5 text-custom-text-200 ${ + `flex w-full cursor-pointer select-none items-center justify-between gap-2 rounded-md px-3 py-2 my-0.5 text-custom-text-200 ${ active ? "bg-custom-background-80 text-custom-text-100" : "" - } ${selected ? "text-custom-text-100" : ""}` + } ${selected ? "text-custom-text-100" : ""} ${!isMobile ? "group" : ""}` } >
@@ -271,7 +272,9 @@ export const ExistingIssuesListModal: React.FC = (props) => { e.stopPropagation()} > diff --git a/web/core/components/issues/issue-detail/root.tsx b/web/core/components/issues/issue-detail/root.tsx index e520da2acbf..9d1252c028d 100644 --- a/web/core/components/issues/issue-detail/root.tsx +++ b/web/core/components/issues/issue-detail/root.tsx @@ -17,6 +17,7 @@ import { EUserProjectRoles } from "@/constants/project"; // hooks import { useAppTheme, useEventTracker, useIssueDetail, useIssues, useUser } from "@/hooks/store"; import { useAppRouter } from "@/hooks/use-app-router"; +import { usePlatformOS } from "@/hooks/use-platform-os"; // images import emptyIssue from "@/public/empty-state/issue.svg"; // local components @@ -81,6 +82,7 @@ export const IssueDetailRoot: FC = observer((props) => { membership: { currentProjectRole }, } = useUser(); const { issueDetailSidebarCollapsed } = useAppTheme(); + const { isMobile } = usePlatformOS(); const issueOperations: TIssueOperations = useMemo( () => ({ @@ -359,18 +361,20 @@ export const IssueDetailRoot: FC = observer((props) => { isArchived={is_archived} />
-
- -
+ {!isMobile && ( +
+ +
+ )} )} diff --git a/web/core/components/issues/issue-layouts/calendar/calendar.tsx b/web/core/components/issues/issue-layouts/calendar/calendar.tsx index 1a17edbd09b..914c73f1259 100644 --- a/web/core/components/issues/issue-layouts/calendar/calendar.tsx +++ b/web/core/components/issues/issue-layouts/calendar/calendar.tsx @@ -219,30 +219,6 @@ export const CalendarChart: React.FC = observer((props) => { - - {/* mobile view */} -
-

- {`${selectedDate.getDate()} ${ - MONTHS_LIST[selectedDate.getMonth() + 1].title - }, ${selectedDate.getFullYear()}`} -

- -
); diff --git a/web/core/components/issues/issue-layouts/calendar/issue-block.tsx b/web/core/components/issues/issue-layouts/calendar/issue-block.tsx index f4bbd4ac4dc..5a9f7e32cd4 100644 --- a/web/core/components/issues/issue-layouts/calendar/issue-block.tsx +++ b/web/core/components/issues/issue-layouts/calendar/issue-block.tsx @@ -72,7 +72,7 @@ export const CalendarIssueBlock = observer( href={`/${workspaceSlug?.toString()}/projects/${projectId?.toString()}/issues/${issue.id}`} onClick={() => handleIssuePeekOverview(issue)} className="block w-full text-sm text-custom-text-100 rounded border-b md:border-[1px] border-custom-border-200 hover:border-custom-border-400" - disabled={!!issue?.tempId || isMobile} + disabled={!!issue?.tempId} ref={ref} > <> @@ -83,11 +83,12 @@ export const CalendarIssueBlock = observer(
diff --git a/web/core/components/issues/issue-layouts/list/block.tsx b/web/core/components/issues/issue-layouts/list/block.tsx index a6233a36ea8..4407c68b582 100644 --- a/web/core/components/issues/issue-layouts/list/block.tsx +++ b/web/core/components/issues/issue-layouts/list/block.tsx @@ -132,7 +132,7 @@ export const IssueBlock = observer((props: IssueBlockProps) => { { "bg-custom-background-80": isCurrentBlockDragging, "md:flex-row md:items-center": isSidebarCollapsed, "lg:flex-row lg:items-center": !isSidebarCollapsed, + "group/list-block hover:bg-custom-background-90": !isMobile, } )} onDragStart={() => { @@ -170,12 +171,11 @@ export const IssueBlock = observer((props: IssueBlockProps) => { >
= ({
-
+
= ({ key={issue.id} value={issue} className={({ active, selected }) => - `group flex w-full cursor-pointer select-none items-center justify-between gap-2 rounded-md px-3 py-2 my-0.5 text-custom-text-200 ${ + `flex w-full cursor-pointer select-none items-center justify-between gap-2 rounded-md px-3 py-2 my-0.5 text-custom-text-200 ${ active ? "bg-custom-background-80 text-custom-text-100" : "" - } ${selected ? "text-custom-text-100" : ""}` + } ${selected ? "text-custom-text-100" : ""} ${!isMobile ? "group" : ""}` } >
@@ -215,7 +216,9 @@ export const ParentIssuesListModal: React.FC = ({ e.stopPropagation()} > diff --git a/web/core/components/workspace/sidebar/favorites/favorites-menu.tsx b/web/core/components/workspace/sidebar/favorites/favorites-menu.tsx index f7b620f7a49..935c5e214a1 100644 --- a/web/core/components/workspace/sidebar/favorites/favorites-menu.tsx +++ b/web/core/components/workspace/sidebar/favorites/favorites-menu.tsx @@ -124,16 +124,22 @@ export const SidebarFavoritesMenu = observer(() => { ref={elementRef} as="button" className={cn( - "sticky top-0 bg-custom-sidebar-background-100 z-10 group/workspace-button w-full px-2 py-1.5 flex items-center justify-between gap-1 text-custom-sidebar-text-400 hover:bg-custom-sidebar-background-90 rounded text-xs font-semibold", + "sticky top-0 bg-custom-sidebar-background-100 z-10 w-full px-2 py-1.5 flex items-center justify-between gap-1 text-custom-sidebar-text-400 rounded text-xs font-semibold", { "bg-custom-sidebar-background-80 opacity-60": isDragging, + "group/workspace-button hover:bg-custom-sidebar-background-90": !isMobile, } )} > toggleFavoriteMenu(!isFavoriteMenuOpen)} className="flex-1 text-start"> YOUR FAVORITES - + { diff --git a/web/core/components/workspace/sidebar/projects-list-item.tsx b/web/core/components/workspace/sidebar/projects-list-item.tsx index c232baa8b4e..977feab96a6 100644 --- a/web/core/components/workspace/sidebar/projects-list-item.tsx +++ b/web/core/components/workspace/sidebar/projects-list-item.tsx @@ -301,13 +301,11 @@ export const SidebarProjectsListItem: React.FC = observer((props) => { >
{!disableDrag && ( @@ -385,12 +383,11 @@ export const SidebarProjectsListItem: React.FC = observer((props) => { } - className={cn( - "opacity-0 pointer-events-none flex-shrink-0 group-hover/project-item:opacity-100 group-hover/project-item:pointer-events-auto", - { - "opacity-100 pointer-events-auto": isMenuActive, - } - )} + className={cn("flex-shrink-0 pointer-events-auto", { + "opacity-100 pointer-events-auto": isMenuActive, + "opacity-0 pointer-events-none group-hover/project-item:opacity-100 group-hover/project-item:pointer-events-auto": + !isMobile, + })} customButtonClassName="grid place-items-center" placement="bottom-start" useCaptureForOutsideClick @@ -468,12 +465,10 @@ export const SidebarProjectsListItem: React.FC = observer((props) => { setIsProjectListOpen(!isProjectListOpen)} > { // get local storage data for isFavoriteProjectsListOpen and isAllProjectsListOpen @@ -40,6 +41,7 @@ export const SidebarProjectsList: FC = observer(() => { const { membership: { currentWorkspaceRole }, } = useUser(); + const { isMobile } = usePlatformOS(); const { getProjectById, joinedProjectIds: joinedProjects, updateProjectView } = useProject(); // router params const { workspaceSlug } = useParams(); @@ -155,10 +157,11 @@ export const SidebarProjectsList: FC = observer(() => {
@@ -166,7 +169,7 @@ export const SidebarProjectsList: FC = observer(() => { as="button" type="button" className={cn( - "group w-full flex items-center gap-1 whitespace-nowrap text-left text-sm font-semibold text-custom-sidebar-text-400", + "w-full flex items-center gap-1 whitespace-nowrap text-left text-sm font-semibold text-custom-sidebar-text-400", { "!text-center w-8 px-2 py-1.5 justify-center": isCollapsed, } @@ -184,7 +187,11 @@ export const SidebarProjectsList: FC = observer(() => { {!isCollapsed && ( -
+
{isAuthorizedUser && (