From dbbd9add99313b97175f5715919a531489483e53 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Mon, 15 May 2023 11:32:50 +0530 Subject: [PATCH] fix: ui and bug fix (#1043) * style: calendar border added * fix: calendar issue ellipsis position fix * fix: help section overflow fix * fix: module card date overflow fix * style: page detail padding and position fix * fix: cycle and module sidebar fix --- apps/app/components/core/calendar-view/single-issue.tsx | 4 ++-- apps/app/components/cycles/sidebar.tsx | 4 ++-- apps/app/components/modules/sidebar.tsx | 4 ++-- apps/app/components/modules/single-module-card.tsx | 2 +- apps/app/components/pages/single-page-block.tsx | 4 ++-- apps/app/layouts/app-layout/app-sidebar.tsx | 2 +- .../projects/[projectId]/cycles/[cycleId].tsx | 4 +--- .../projects/[projectId]/modules/[moduleId].tsx | 4 +--- .../[workspaceSlug]/projects/[projectId]/pages/[pageId].tsx | 5 +++-- apps/app/styles/react-datepicker.css | 6 +++++- 10 files changed, 20 insertions(+), 19 deletions(-) diff --git a/apps/app/components/core/calendar-view/single-issue.tsx b/apps/app/components/core/calendar-view/single-issue.tsx index c9f8ecf57..dc56d6126 100644 --- a/apps/app/components/core/calendar-view/single-issue.tsx +++ b/apps/app/components/core/calendar-view/single-issue.tsx @@ -120,11 +120,11 @@ export const SingleCalendarIssue: React.FC = ({ ref={provided.innerRef} {...provided.draggableProps} {...provided.dragHandleProps} - className={`w-full cursor-pointer rounded border border-brand-base px-1.5 py-1.5 text-xs duration-300 hover:cursor-move hover:bg-brand-surface-2 ${ + className={`w-full relative cursor-pointer rounded border border-brand-base px-1.5 py-1.5 text-xs duration-300 hover:cursor-move hover:bg-brand-surface-2 ${ snapshot.isDragging ? "bg-brand-surface-2 shadow-lg" : "" }`} > -
+
{!isNotAllowed && (
diff --git a/apps/app/components/cycles/sidebar.tsx b/apps/app/components/cycles/sidebar.tsx index 91e592e7d..86c8132b0 100644 --- a/apps/app/components/cycles/sidebar.tsx +++ b/apps/app/components/cycles/sidebar.tsx @@ -133,9 +133,9 @@ export const CycleDetailsSidebar: React.FC = ({ <>
{cycle ? ( <> diff --git a/apps/app/components/modules/sidebar.tsx b/apps/app/components/modules/sidebar.tsx index e5a932608..502675bef 100644 --- a/apps/app/components/modules/sidebar.tsx +++ b/apps/app/components/modules/sidebar.tsx @@ -183,9 +183,9 @@ export const ModuleDetailsSidebar: React.FC = ({ issues, module, isOpen, data={module} />
{module ? ( <> diff --git a/apps/app/components/modules/single-module-card.tsx b/apps/app/components/modules/single-module-card.tsx index c4a580db5..c8fc25c46 100644 --- a/apps/app/components/modules/single-module-card.tsx +++ b/apps/app/components/modules/single-module-card.tsx @@ -179,7 +179,7 @@ export const SingleModuleCard: React.FC = ({ module, handleEditModule })
-
+
Start: diff --git a/apps/app/components/pages/single-page-block.tsx b/apps/app/components/pages/single-page-block.tsx index 85451375d..42f0e5523 100644 --- a/apps/app/components/pages/single-page-block.tsx +++ b/apps/app/components/pages/single-page-block.tsx @@ -293,11 +293,11 @@ export const SinglePageBlock: React.FC = ({ block, projectDetails, index >
= ({ return (
{ } right={ -
+
setAnalyticsModal(true)} diff --git a/apps/app/pages/[workspaceSlug]/projects/[projectId]/modules/[moduleId].tsx b/apps/app/pages/[workspaceSlug]/projects/[projectId]/modules/[moduleId].tsx index d3ef97bd8..41e566d90 100644 --- a/apps/app/pages/[workspaceSlug]/projects/[projectId]/modules/[moduleId].tsx +++ b/apps/app/pages/[workspaceSlug]/projects/[projectId]/modules/[moduleId].tsx @@ -150,9 +150,7 @@ const SingleModule: React.FC = () => { } right={ -
+
setAnalyticsModal(true)} diff --git a/apps/app/pages/[workspaceSlug]/projects/[projectId]/pages/[pageId].tsx b/apps/app/pages/[workspaceSlug]/projects/[projectId]/pages/[pageId].tsx index 30e65a7a0..d1c33763d 100644 --- a/apps/app/pages/[workspaceSlug]/projects/[projectId]/pages/[pageId].tsx +++ b/apps/app/pages/[workspaceSlug]/projects/[projectId]/pages/[pageId].tsx @@ -303,7 +303,7 @@ const SinglePage: NextPage = () => { {pageDetails ? (
-
+
@@ -502,7 +503,7 @@ const SinglePage: NextPage = () => {
-
+
{pageBlocks ? ( <> diff --git a/apps/app/styles/react-datepicker.css b/apps/app/styles/react-datepicker.css index 3c5f9a5ca..ed866f36d 100644 --- a/apps/app/styles/react-datepicker.css +++ b/apps/app/styles/react-datepicker.css @@ -23,8 +23,8 @@ .react-datepicker { font-family: "Inter" !important; - border: none !important; background-color: rgba(var(--color-bg-base)) !important; + border: 1px solid rgba(var(--color-border)) !important; } .react-datepicker__month-container { @@ -116,3 +116,7 @@ background-color: #216ba5 !important; color: white !important; } + +.react-datepicker__day--in-range { + color: white !important; +}