π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
[WEB-579] style: scrollbar implementation (#3835)
Anmol Singh Bhatiac06ef4d1d779
diff --git a/web/components/analytics/custom-analytics/main-content.tsx b/web/components/analytics/custom-analytics/main-content.tsxindex 3c199f8078..7781e78696 100644--- a/web/components/analytics/custom-analytics/main-content.tsx+++ b/web/components/analytics/custom-analytics/main-content.tsx@@ -33,7 +33,7 @@ export const CustomAnalyticsMainContent: React.FC<Props> = (props) => {{!error ? (analytics ? (analytics.total > 0 ? (- <div className="h-full overflow-y-auto">+ <div className="h-full overflow-y-auto vertical-scrollbar scrollbar-md"><AnalyticsGraphanalytics={analytics}barGraphData={barGraphData}diff --git a/web/components/analytics/custom-analytics/sidebar/projects-list.tsx b/web/components/analytics/custom-analytics/sidebar/projects-list.tsxindex f7ba07b75c..334e9160f1 100644--- a/web/components/analytics/custom-analytics/sidebar/projects-list.tsx+++ b/web/components/analytics/custom-analytics/sidebar/projects-list.tsx@@ -19,7 +19,7 @@ export const CustomAnalyticsSidebarProjectsList: React.FC<Props> = observer((proreturn (<div className="relative flex flex-col gap-4 h-full"><h4 className="font-medium">Selected Projects</h4>- <div className="relative space-y-6 overflow-hidden overflow-y-auto">+ <div className="relative space-y-6 overflow-hidden overflow-y-auto vertical-scrollbar scrollbar-md">{projectIds.map((projectId) => {const project = getProjectById(projectId);@@ -42,7 +42,7 @@ export const CustomAnalyticsSidebarProjectsList: React.FC<Props> = observer((pro<span className="ml-1 text-xs text-custom-text-200">({project.identifier})</span></h5></div>- <div className="mt-4 w-full space-y-3 pl-2">+ <div className="mt-4 w-full space-y-3 px-2"><div className="flex items-center justify-between gap-2 text-xs"><div className="flex items-center gap-2"><Users className="text-custom-text-200" size={14} strokeWidth={2} />diff --git a/web/components/analytics/custom-analytics/sidebar/sidebar.tsx b/web/components/analytics/custom-analytics/sidebar/sidebar.tsxindex 3ad2805f28..bf1c80fea7 100644--- a/web/components/analytics/custom-analytics/sidebar/sidebar.tsx+++ b/web/components/analytics/custom-analytics/sidebar/sidebar.tsx@@ -1,4 +1,4 @@-import { useEffect, } from "react";+import { useEffect } from "react";import { useRouter } from "next/router";import { observer } from "mobx-react-lite";import { mutate } from "swr";diff --git a/web/components/core/image-picker-popover.tsx b/web/components/core/image-picker-popover.tsxindex b2e4c4c9fd..09a1fd4e4d 100644--- a/web/components/core/image-picker-popover.tsx+++ b/web/components/core/image-picker-popover.tsx@@ -187,7 +187,7 @@ export const ImagePickerPopover: React.FC<Props> = observer((props) => {);})}</Tab.List>- <Tab.Panels className="h-full w-full flex-1 overflow-y-auto overflow-x-hidden">+ <Tab.Panels className="h-full w-full flex-1 overflow-y-auto overflow-x-hidden vertical-scrollbar scrollbar-md">{(unsplashImages || !unsplashError) && (<Tab.Panel className="mt-4 h-full w-full space-y-4"><div className="flex gap-x-2">diff --git a/web/components/core/modals/existing-issues-list-modal.tsx b/web/components/core/modals/existing-issues-list-modal.tsxindex c4fa25c6d6..1b6a1e76bd 100644--- a/web/components/core/modals/existing-issues-list-modal.tsx+++ b/web/components/core/modals/existing-issues-list-modal.tsx@@ -184,7 +184,7 @@ export const ExistingIssuesListModal: React.FC<Props> = (props) => {)}</div>- <Combobox.Options static className="max-h-80 scroll-py-2 overflow-y-auto">+ <Combobox.Options static className="max-h-80 scroll-py-2 overflow-y-auto vertical-scrollbar scrollbar-md">{searchTerm !== "" && (<h5 className="mx-2 text-[0.825rem] text-custom-text-200">Search results for{" "}diff --git a/web/components/emoji-icon-picker/index.tsx b/web/components/emoji-icon-picker/index.tsxindex 57d5d88967..9c45e53568 100644--- a/web/components/emoji-icon-picker/index.tsx+++ b/web/components/emoji-icon-picker/index.tsx@@ -94,7 +94,7 @@ const EmojiIconPicker: React.FC<Props> = (props) => {</Tab>))}</Tab.List>- <Tab.Panels className="flex-1 overflow-y-auto">+ <Tab.Panels className="flex-1 overflow-y-auto vertical-scrollbar scrollbar-sm"><Tab.Panel>{recentEmojis.length > 0 && (<div className="py-2">diff --git a/web/components/issues/issue-layouts/filters/header/display-filters/display-filters-selection.tsx b/web/components/issues/issue-layouts/filters/header/display-filters/display-filters-selection.tsxindex 131bea46bc..b8988580aa 100644--- a/web/components/issues/issue-layouts/filters/header/display-filters/display-filters-selection.tsx+++ b/web/components/issues/issue-layouts/filters/header/display-filters/display-filters-selection.tsx@@ -37,7 +37,7 @@ export const DisplayFiltersSelection: React.FC<Props> = observer((props) => {Object.keys(layoutDisplayFiltersOptions?.display_filters ?? {}).includes(displayFilter);return (- <div className="relative h-full w-full divide-y divide-custom-border-200 overflow-hidden overflow-y-auto px-2.5">+ <div className="relative h-full w-full divide-y divide-custom-border-200 overflow-hidden overflow-y-auto px-2.5 vertical-scrollbar scrollbar-sm">{/* display properties */}{layoutDisplayFiltersOptions?.display_properties && (<div className="py-2">diff --git a/web/components/issues/issue-layouts/filters/header/filters/filters-selection.tsx b/web/components/issues/issue-layouts/filters/header/filters/filters-selection.tsxindex afdee86f2c..ae7ded8b2d 100644--- a/web/components/issues/issue-layouts/filters/header/filters/filters-selection.tsx+++ b/web/components/issues/issue-layouts/filters/header/filters/filters-selection.tsx@@ -63,7 +63,7 @@ export const FilterSelection: React.FC<Props> = observer((props) => {)}</div></div>- <div className="h-full w-full divide-y divide-custom-border-200 overflow-y-auto px-2.5">+ <div className="h-full w-full divide-y divide-custom-border-200 overflow-y-auto px-2.5 vertical-scrollbar scrollbar-sm">{/* priority */}{isFilterEnabled("priority") && (<div className="py-2">diff --git a/web/components/issues/parent-issues-list-modal.tsx b/web/components/issues/parent-issues-list-modal.tsxindex c8520562e4..b97eafc064 100644--- a/web/components/issues/parent-issues-list-modal.tsx+++ b/web/components/issues/parent-issues-list-modal.tsx@@ -136,7 +136,10 @@ export const ParentIssuesListModal: React.FC<Props> = ({</div></Tooltip></div>- <Combobox.Options static className="max-h-80 scroll-py-2 overflow-y-auto">+ <Combobox.Options+ static+ className="max-h-80 scroll-py-2 overflow-y-auto vertical-scrollbar scrollbar-md"+ >{searchTerm !== "" && (<h5 className="mx-2 text-[0.825rem] text-custom-text-200">Search results for{" "}diff --git a/web/components/profile/sidebar.tsx b/web/components/profile/sidebar.tsxindex 107c1f5281..71d935d3c8 100644--- a/web/components/profile/sidebar.tsx+++ b/web/components/profile/sidebar.tsx@@ -76,7 +76,7 @@ export const ProfileSidebar = observer(() => {return (<div- className={`flex-shrink-0 overflow-hidden overflow-y-auto shadow-custom-shadow-sm border-l border-custom-border-100 bg-custom-sidebar-background-100 h-full z-[5] fixed md:relative transition-all w-full md:w-[300px]`}+ className={`flex-shrink-0 overflow-hidden overflow-y-auto vertical-scrollbar scrollbar-md shadow-custom-shadow-sm border-l border-custom-border-100 bg-custom-sidebar-background-100 h-full z-[5] fixed md:relative transition-all w-full md:w-[300px]`}style={themeStore.profileSidebarCollapsed ? { marginLeft: `${window?.innerWidth || 0}px` } : {}}>{userProjectsData ? (@@ -162,12 +162,13 @@ export const ProfileSidebar = observer(() => {{project.assigned_issues > 0 && (<Tooltip tooltipContent="Completion percentage" position="left"><div- className={`rounded px-1 py-0.5 text-xs font-medium ${completedIssuePercentage <= 35- ? "bg-red-500/10 text-red-500"- : completedIssuePercentage <= 70+ className={`rounded px-1 py-0.5 text-xs font-medium ${+ completedIssuePercentage <= 35+ ? "bg-red-500/10 text-red-500"+ : completedIssuePercentage <= 70? "bg-yellow-500/10 text-yellow-500": "bg-green-500/10 text-green-500"- }`}+ }`}>{completedIssuePercentage}%</div>diff --git a/web/layouts/settings-layout/profile/layout.tsx b/web/layouts/settings-layout/profile/layout.tsxindex 08dfd55098..5bf5f0eeae 100644--- a/web/layouts/settings-layout/profile/layout.tsx+++ b/web/layouts/settings-layout/profile/layout.tsx@@ -21,7 +21,9 @@ export const ProfileSettingsLayout: FC<IProfileSettingsLayout> = (props) => {<ProfileLayoutSidebar /><main className="relative flex h-full w-full flex-col overflow-hidden bg-custom-background-100">{header}- <div className="h-full w-full overflow-x-hidden overflow-y-scroll">{children}</div>+ <div className="h-full w-full overflow-x-hidden overflow-y-scroll">+ {children}+ </div></main></div></UserAuthWrapper>diff --git a/web/layouts/settings-layout/profile/preferences/layout.tsx b/web/layouts/settings-layout/profile/preferences/layout.tsxindex 0e1d315876..116813958f 100644--- a/web/layouts/settings-layout/profile/preferences/layout.tsx+++ b/web/layouts/settings-layout/profile/preferences/layout.tsx@@ -73,7 +73,9 @@ export const ProfilePreferenceSettingsLayout: FC<IProfilePreferenceSettingsLayou<ProfilePreferenceSettingsSidebar /><main className="relative flex h-full w-full flex-col overflow-hidden bg-custom-background-100">{header}- <div className="h-full w-full overflow-x-hidden overflow-y-scroll">{children}</div>+ <div className="h-full w-full overflow-x-hidden overflow-y-scroll vertical-scrollbar scrollbar-md">+ {children}+ </div></main></div></ProfileSettingsLayout>diff --git a/web/layouts/settings-layout/profile/sidebar.tsx b/web/layouts/settings-layout/profile/sidebar.tsxindex 85f82961fe..3e515cc647 100644--- a/web/layouts/settings-layout/profile/sidebar.tsx+++ b/web/layouts/settings-layout/profile/sidebar.tsx@@ -129,7 +129,7 @@ export const ProfileLayoutSidebar = observer(() => {{!sidebarCollapsed && (<h6 className="rounded px-1.5 text-sm font-semibold text-custom-sidebar-text-400">Your account</h6>)}- <div className="mt-2 h-full space-y-1.5 overflow-y-auto">+ <div className="mt-2 h-full space-y-1.5 overflow-y-auto vertical-scrollbar scrollbar-sm">{PROFILE_ACTION_LINKS.map((link) => {if (link.key === "change-password" && currentUser?.is_password_autoset) return null;@@ -157,7 +157,7 @@ export const ProfileLayoutSidebar = observer(() => {<h6 className="rounded px-1.5 text-sm font-semibold text-custom-sidebar-text-400">Workspaces</h6>)}{workspacesList && workspacesList.length > 0 && (- <div className="mt-2 h-full space-y-1.5 overflow-y-auto">+ <div className="mt-2 h-full space-y-1.5 overflow-y-auto vertical-scrollbar scrollbar-sm">{workspacesList.map((workspace) => (<Linkkey={workspace.id}diff --git a/web/layouts/settings-layout/project/layout.tsx b/web/layouts/settings-layout/project/layout.tsxindex 2fb382b3a9..38525e98cd 100644--- a/web/layouts/settings-layout/project/layout.tsx+++ b/web/layouts/settings-layout/project/layout.tsx@@ -45,7 +45,9 @@ export const ProjectSettingLayout: FC<IProjectSettingLayout> = observer((props)<div className="w-80 flex-shrink-0 overflow-y-hidden pt-8 sm:hidden hidden md:block lg:block"><ProjectSettingsSidebar /></div>- <div className="w-full pl-10 sm:pl-10 md:pl-0 lg:pl-0 overflow-x-hidden overflow-y-scroll">{children}</div>+ <div className="w-full pl-10 sm:pl-10 md:pl-0 lg:pl-0 overflow-x-hidden overflow-y-scroll vertical-scrollbar scrollbar-md">+ {children}+ </div></div>);});diff --git a/web/layouts/settings-layout/workspace/layout.tsx b/web/layouts/settings-layout/workspace/layout.tsxindex 4ee0f1e335..3d5d057beb 100644--- a/web/layouts/settings-layout/workspace/layout.tsx+++ b/web/layouts/settings-layout/workspace/layout.tsx@@ -10,11 +10,11 @@ export const WorkspaceSettingLayout: FC<IWorkspaceSettingLayout> = (props) => {const { children } = props;return (- <div className="inset-y-0 z-20 flex h-full w-full gap-2 overflow-x-hidden overflow-y-scroll">+ <div className="inset-y-0 z-20 flex h-full w-full gap-2"><div className="w-80 flex-shrink-0 overflow-y-hidden pt-8 sm:hidden hidden md:block lg:block"><WorkspaceSettingsSidebar /></div>- <div className="w-full pl-10 sm:pl-10 md:pl-0 lg:pl-0">+ <div className="w-full pl-10 sm:pl-10 md:pl-0 lg:pl-0 overflow-x-hidden overflow-y-scroll vertical-scrollbar scrollbar-md">{children}</div></div>diff --git a/web/pages/[workspaceSlug]/profile/[userId]/index.tsx b/web/pages/[workspaceSlug]/profile/[userId]/index.tsxindex a4d1debe1c..7d24a8b111 100644--- a/web/pages/[workspaceSlug]/profile/[userId]/index.tsx+++ b/web/pages/[workspaceSlug]/profile/[userId]/index.tsx@@ -45,7 +45,7 @@ const ProfileOverviewPage: NextPageWithLayout = () => {return (<><PageHead title="Profile - Summary" />- <div className="h-full w-full space-y-7 overflow-y-auto px-5 py-5 md:px-9">+ <div className="h-full w-full space-y-7 overflow-y-auto px-5 py-5 md:px-9 vertical-scrollbar scrollbar-md"><ProfileStats userProfile={userProfile} /><ProfileWorkload stateDistribution={stateDistribution} /><div className="grid grid-cols-1 items-stretch gap-5 xl:grid-cols-2">diff --git a/web/pages/[workspaceSlug]/projects/[projectId]/settings/estimates.tsx b/web/pages/[workspaceSlug]/projects/[projectId]/settings/estimates.tsxindex 3aea45adbc..70108f90a0 100644--- a/web/pages/[workspaceSlug]/projects/[projectId]/settings/estimates.tsx+++ b/web/pages/[workspaceSlug]/projects/[projectId]/settings/estimates.tsx@@ -26,7 +26,7 @@ const EstimatesSettingsPage: NextPageWithLayout = observer(() => {return (<><PageHead title={pageTitle} />- <div className={`h-full w-full overflow-y-auto py-8 pr-9 ${isAdmin ? "" : "pointer-events-none opacity-60"}`}>+ <div className={`w-full overflow-y-auto py-8 pr-9 ${isAdmin ? "" : "pointer-events-none opacity-60"}`}><EstimatesList /></div></>diff --git a/web/pages/[workspaceSlug]/projects/[projectId]/settings/integrations.tsx b/web/pages/[workspaceSlug]/projects/[projectId]/settings/integrations.tsxindex 06246f1c20..5c9faae7cd 100644--- a/web/pages/[workspaceSlug]/projects/[projectId]/settings/integrations.tsx+++ b/web/pages/[workspaceSlug]/projects/[projectId]/settings/integrations.tsx@@ -56,7 +56,7 @@ const ProjectIntegrationsPage: NextPageWithLayout = observer(() => {return (<><PageHead title={pageTitle} />- <div className={`h-full w-full gap-10 overflow-y-auto py-8 pr-9 ${isAdmin ? "" : "opacity-60"}`}>+ <div className={`w-full gap-10 overflow-y-auto py-8 pr-9 ${isAdmin ? "" : "opacity-60"}`}><div className="flex items-center border-b border-custom-border-100 py-3.5"><h3 className="text-xl font-medium">Integrations</h3></div>diff --git a/web/pages/[workspaceSlug]/projects/[projectId]/settings/labels.tsx b/web/pages/[workspaceSlug]/projects/[projectId]/settings/labels.tsxindex 3bb1c8c04b..d62ac1e665 100644--- a/web/pages/[workspaceSlug]/projects/[projectId]/settings/labels.tsx+++ b/web/pages/[workspaceSlug]/projects/[projectId]/settings/labels.tsx@@ -19,7 +19,7 @@ const LabelsSettingsPage: NextPageWithLayout = observer(() => {return (<><PageHead title={pageTitle} />- <div className="h-full w-full gap-10 overflow-y-auto py-8 pr-9">+ <div className="w-full gap-10 overflow-y-auto py-8 pr-9"><ProjectSettingsLabelList /></div></>diff --git a/web/pages/[workspaceSlug]/settings/api-tokens.tsx b/web/pages/[workspaceSlug]/settings/api-tokens.tsxindex 1f203ff04c..35366cb0a2 100644--- a/web/pages/[workspaceSlug]/settings/api-tokens.tsx+++ b/web/pages/[workspaceSlug]/settings/api-tokens.tsx@@ -71,7 +71,7 @@ const ApiTokensPage: NextPageWithLayout = observer(() => {<><PageHead title={pageTitle} /><CreateApiTokenModal isOpen={isCreateTokenModalOpen} onClose={() => setIsCreateTokenModalOpen(false)} />- <section className="h-full w-full overflow-y-auto py-8 pr-9">+ <section className="w-full overflow-y-auto py-8 pr-9 ">{tokens.length > 0 ? (<><div className="flex items-center justify-between border-b border-custom-border-200 py-3.5">diff --git a/web/pages/[workspaceSlug]/settings/webhooks/index.tsx b/web/pages/[workspaceSlug]/settings/webhooks/index.tsxindex 46c7e99cb7..19f23913ef 100644--- a/web/pages/[workspaceSlug]/settings/webhooks/index.tsx+++ b/web/pages/[workspaceSlug]/settings/webhooks/index.tsx@@ -70,7 +70,7 @@ const WebhooksListPage: NextPageWithLayout = observer(() => {return (<><PageHead title={pageTitle} />- <div className="h-full w-full overflow-hidden py-8 pr-9">+ <div className="w-full overflow-y-auto py-8 pr-9"><CreateWebhookModalcreateWebhook={createWebhook}clearSecretKey={clearSecretKey}diff --git a/web/pages/profile/activity.tsx b/web/pages/profile/activity.tsxindex 4460f2ec50..3ea65ed249 100644--- a/web/pages/profile/activity.tsx+++ b/web/pages/profile/activity.tsx@@ -40,7 +40,7 @@ const ProfileActivityPage: NextPageWithLayout = observer(() => {<h3 className="text-xl font-medium">Activity</h3></div>{userActivity ? (- <div className="flex h-full w-full flex-col gap-2 overflow-y-auto">+ <div className="flex h-full w-full flex-col gap-2 overflow-y-auto vertical-scrollbar scrollbar-md"><ul role="list" className="-mb-4">{userActivity.results.map((activityItem: any) => {if (activityItem.field === "comment") {diff --git a/web/pages/profile/index.tsx b/web/pages/profile/index.tsxindex bdde41d08f..c4eab324a8 100644--- a/web/pages/profile/index.tsx+++ b/web/pages/profile/index.tsx@@ -163,7 +163,7 @@ const ProfileSettingsPage: NextPageWithLayout = observer(() => {)}/><DeactivateAccountModal isOpen={deactivateAccountModal} onClose={() => setDeactivateAccountModal(false)} />- <div className="mx-auto flex h-full w-full flex-col space-y-10 overflow-y-auto pt-10 md:pt-16 px-8 pb-8 lg:w-3/5">+ <div className="mx-auto flex h-full w-full flex-col space-y-10 overflow-y-auto pt-10 md:pt-16 px-8 pb-8 lg:w-3/5 vertical-scrollbar scrollbar-md"><form onSubmit={handleSubmit(onSubmit)}><div className="flex w-full flex-col gap-8"><div className="relative h-44 w-full">diff --git a/web/pages/profile/preferences/email.tsx b/web/pages/profile/preferences/email.tsxindex 34bd6fb030..ddd23abdfc 100644--- a/web/pages/profile/preferences/email.tsx+++ b/web/pages/profile/preferences/email.tsx@@ -28,7 +28,7 @@ const ProfilePreferencesThemePage: NextPageWithLayout = () => {return (<><PageHead title="Profile - Email Preference" />- <div className="mx-auto mt-8 h-full w-full overflow-y-auto px-6 lg:px-20 pb-8">+ <div className="mx-auto mt-8 h-full w-full px-6 lg:px-20 pb-8"><EmailNotificationForm data={data} /></div></>