File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
web/src/components/ItemCard Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 11import React from "react" ;
22import styled from "styled-components" ;
33import WithHelpTooltip from "components/WithHelpTooltip" ;
4+ import TruncatedText from "components/TruncatedText" ;
45
56const Container = styled . p `
67 margin: 0px;
@@ -13,7 +14,13 @@ export interface ITextField {
1314}
1415const TextField : React . FC < ITextField > = ( { value, detailed, label } ) => {
1516 return (
16- < Container > { detailed ? < WithHelpTooltip tooltipMsg = { label ?? "" } > { value } </ WithHelpTooltip > : value } </ Container >
17+ < Container >
18+ { detailed ? (
19+ < WithHelpTooltip tooltipMsg = { label ?? "" } > { value } </ WithHelpTooltip >
20+ ) : (
21+ < TruncatedText text = { value } maxLength = { 100 } />
22+ ) }
23+ </ Container >
1724 ) ;
1825} ;
1926
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ const FieldsContainer = styled.div`
6363 flex-direction: column;
6464 justify-content: space-between;
6565 align-items: start;
66- width: max -content;
66+ width: fit -content;
6767 gap: 16px;
6868 grid-column: span 2;
6969 ${ landscapeStyle (
You can’t perform that action at this time.
0 commit comments