From f2a934dd188c6451e657ec288335c520a2970804 Mon Sep 17 00:00:00 2001 From: Jacky Li Date: Thu, 2 Jan 2025 15:17:01 -0800 Subject: [PATCH] feat: remove arrows from number fields on TumourSumEdit, fix data setting for genomeTmb DEVSU-2465 --- app/components/TumourSummaryEdit/index.scss | 9 ++++++++ app/components/TumourSummaryEdit/index.tsx | 25 +++++++++++---------- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/app/components/TumourSummaryEdit/index.scss b/app/components/TumourSummaryEdit/index.scss index a1cab2765..ffbc00c0b 100644 --- a/app/components/TumourSummaryEdit/index.scss +++ b/app/components/TumourSummaryEdit/index.scss @@ -7,6 +7,15 @@ margin: 12px 0; } + &__number-field { + margin: 12px 0; + input::-webkit-outer-spin-button, + input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; + } + } + &__check-box { color: gray; margin-top: -12px; diff --git a/app/components/TumourSummaryEdit/index.tsx b/app/components/TumourSummaryEdit/index.tsx index a97d0822b..79b585dec 100644 --- a/app/components/TumourSummaryEdit/index.tsx +++ b/app/components/TumourSummaryEdit/index.tsx @@ -92,6 +92,7 @@ const TumourSummaryEdit = ({ tumourContent: report.tumourContent, subtyping: report.subtyping, captiv8Score: report.captiv8Score, + genomeTmb: report.genomeTmb, }); } }, [report]); @@ -398,7 +399,7 @@ const TumourSummaryEdit = ({ if (newReportData) { const captiv8Section = ( {captiv8Section} @@ -494,7 +495,7 @@ const TumourSummaryEdit = ({ const tCellCd8DataSection = useMemo(() => ( <> Show/Hide CD8+ Percentile} /> ( <> ( <>