Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

chore: change border of placeholder for spreadsheet (#3631)

rahulrameshad90aaba842cf
diff --git a/web/components/core/render-if-visible-HOC.tsx b/web/components/core/render-if-visible-HOC.tsx
index 26ae15285d..24ae19fe79 100644
--- a/web/components/core/render-if-visible-HOC.tsx
+++ b/web/components/core/render-if-visible-HOC.tsx
@@ -40,13 +40,15 @@ const RenderIfVisible: React.FC<Props> = (props) => {
if (intersectionRef.current) {
const observer = new IntersectionObserver(
(entries) => {
- if (typeof window !== undefined && window.requestIdleCallback) {
- window.requestIdleCallback(() => setShouldVisible(entries[0].isIntersecting), {
- timeout: 300,
- });
- } else {
- setShouldVisible(entries[0].isIntersecting);
- }
+ //DO no remove comments for future
+ // if (typeof window !== undefined && window.requestIdleCallback) {
+ // window.requestIdleCallback(() => setShouldVisible(entries[0].isIntersecting), {
+ // timeout: 300,
+ // });
+ // } else {
+ // setShouldVisible(entries[0].isIntersecting);
+ // }
+ setShouldVisible(entries[0].isIntersecting);
},
{
root: root?.current,
diff --git a/web/components/cycles/sidebar.tsx b/web/components/cycles/sidebar.tsx
index 8335baf06b..c825feb379 100644
--- a/web/components/cycles/sidebar.tsx
+++ b/web/components/cycles/sidebar.tsx
@@ -329,7 +329,7 @@ export const CycleDetailsSidebar: React.FC<Props> = observer((props) => {
const isEndValid = new Date(`${cycleDetails?.end_date}`) >= new Date(`${cycleDetails?.start_date}`);
const progressPercentage = cycleDetails
- ? isCompleted
+ ? isCompleted && cycleDetails?.progress_snapshot
? Math.round(
(cycleDetails.progress_snapshot.completed_issues / cycleDetails.progress_snapshot.total_issues) * 100
)
diff --git a/web/components/issues/issue-layouts/spreadsheet/issue-row.tsx b/web/components/issues/issue-layouts/spreadsheet/issue-row.tsx
index 840ea39f9c..b07dc93e24 100644
--- a/web/components/issues/issue-layouts/spreadsheet/issue-row.tsx
+++ b/web/components/issues/issue-layouts/spreadsheet/issue-row.tsx
@@ -65,7 +65,7 @@ export const SpreadsheetIssueRow = observer((props: Props) => {
as="tr"
defaultHeight="calc(2.75rem - 1px)"
root={containerRef}
- placeholderChildren={<td colSpan={100} className="border-b-[0.5px]" />}
+ placeholderChildren={<td colSpan={100} className="border-b-[0.5px] border-custom-border-200" />}
changingReference={issueIds}
>
<IssueRowDetails