From 80dd988789e4494ebc60de182f0a717e1b4680b0 Mon Sep 17 00:00:00 2001 From: sjaanus Date: Tue, 17 Oct 2023 15:29:27 +0300 Subject: [PATCH 1/2] feat: allow selection of text in contexts --- .../ConstraintAccordionView.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionView/ConstraintAccordionView.tsx b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionView/ConstraintAccordionView.tsx index a176bdaa4491..e3ae4d2cac58 100644 --- a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionView/ConstraintAccordionView.tsx +++ b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionView/ConstraintAccordionView.tsx @@ -45,6 +45,10 @@ const StyledAccordionSummary = styled(AccordionSummary)(({ theme }) => ({ textDecoration: 'underline', }, }, + userSelect: 'auto', + '-webkit-user-select': 'auto', + '-moz-user-select': 'auto', + '-ms-user-select': 'auto', })); const StyledAccordionDetails = styled(AccordionDetails)(({ theme }) => ({ borderTop: `1px dashed ${theme.palette.divider}`, @@ -59,13 +63,13 @@ const StyledWrapper = styled('div')({ }); export const ConstraintAccordionView = ({ - constraint, - onEdit, - onDelete, - sx = undefined, - compact = false, - renderAfter, -}: IConstraintAccordionViewProps) => { + constraint, + onEdit, + onDelete, + sx = undefined, + compact = false, + renderAfter, + }: IConstraintAccordionViewProps) => { const [expandable, setExpandable] = useState(true); const [expanded, setExpanded] = useState(false); From 625e011ef8aca5934c697a483e9560ba1b050ed3 Mon Sep 17 00:00:00 2001 From: sjaanus Date: Tue, 17 Oct 2023 15:30:02 +0300 Subject: [PATCH 2/2] Fix --- .../ConstraintAccordionView.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionView/ConstraintAccordionView.tsx b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionView/ConstraintAccordionView.tsx index e3ae4d2cac58..9d209f2b4a97 100644 --- a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionView/ConstraintAccordionView.tsx +++ b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionView/ConstraintAccordionView.tsx @@ -63,13 +63,13 @@ const StyledWrapper = styled('div')({ }); export const ConstraintAccordionView = ({ - constraint, - onEdit, - onDelete, - sx = undefined, - compact = false, - renderAfter, - }: IConstraintAccordionViewProps) => { + constraint, + onEdit, + onDelete, + sx = undefined, + compact = false, + renderAfter, +}: IConstraintAccordionViewProps) => { const [expandable, setExpandable] = useState(true); const [expanded, setExpanded] = useState(false);