@@ -49,8 +49,11 @@ export const ViewImageDrawer = (props: Props) => {
4949 < StyledLabel > Label:</ StyledLabel > { image ?. label }
5050 </ Typography >
5151 < Typography variant = "body1" >
52- < StyledLabel > Image ID:</ StyledLabel > { ' ' }
53- < CopyTooltip copyableText text = { image ?. id ?? '' } />
52+ < StyledLabel > Image ID:</ StyledLabel > { image ?. id }
53+ < StyledCopyIcon
54+ data-pendo-id = { pendoIDs . copyImageIdIcon }
55+ text = { image ?. id ?? '' }
56+ />
5457 </ Typography >
5558 { isSharedImage && (
5659 < Typography variant = "body1" >
@@ -87,37 +90,33 @@ export const ViewImageDrawer = (props: Props) => {
8790 </ Stack >
8891 ) }
8992 { image ?. description && (
90- < Typography variant = "body1" >
91- < Stack direction = "column" spacing = { 1 } >
92- < StyledLabel > Description</ StyledLabel >
93- { image . description }
94- </ Stack >
95- </ Typography >
93+ < Stack direction = "column" spacing = { 1 } >
94+ < StyledLabel > Description</ StyledLabel >
95+ < Typography variant = "body1" > { image . description } </ Typography >
96+ </ Stack >
9697 ) }
97- < Typography variant = "body1" >
98- < StyledLabel > Replicated in the following regions:</ StyledLabel > { ' ' }
99- { image ?. regions . map ( ( region ) => {
100- const countryAndLabelObject = getCountryAndLabelFromImageRegion (
101- regions ?? [ ] ,
102- region
103- ) ;
98+ < StyledLabel > Replicated in the following regions:</ StyledLabel > { ' ' }
99+ { image ?. regions . map ( ( region ) => {
100+ const countryAndLabelObject = getCountryAndLabelFromImageRegion (
101+ regions ?? [ ] ,
102+ region
103+ ) ;
104104
105- const imageCountry = countryAndLabelObject . country ?? 'us' ;
106- const regionLabel = countryAndLabelObject . label ?? 'Unknown' ;
105+ const imageCountry = countryAndLabelObject . country ?? 'us' ;
106+ const regionLabel = countryAndLabelObject . label ?? 'Unknown' ;
107107
108- return (
109- < Stack
110- alignItems = "center"
111- direction = "row"
112- key = { region . region }
113- marginTop = { 1 }
114- >
115- < Flag country = { imageCountry } />
116- < span style = { { paddingLeft : 8 } } > { regionLabel } </ span >
117- </ Stack >
118- ) ;
119- } ) }
120- </ Typography >
108+ return (
109+ < Stack
110+ alignItems = "center"
111+ direction = "row"
112+ key = { region . region }
113+ marginTop = { 1 }
114+ >
115+ < Flag country = { imageCountry } />
116+ < span style = { { paddingLeft : 8 } } > { regionLabel } </ span >
117+ </ Stack >
118+ ) ;
119+ } ) }
121120 </ Stack >
122121 < ActionsPanel
123122 data-pendo-id = { pendoIDs . closeButton }
@@ -143,3 +142,12 @@ const StyledCloudInitIcon = styled(CloudInitIcon, {
143142 height : 16 ,
144143 width : 16 ,
145144} ) ) ;
145+
146+ const StyledCopyIcon = styled ( CopyTooltip ) ( ( { theme } ) => ( {
147+ '& svg' : {
148+ height : 12 ,
149+ top : 1 ,
150+ width : 12 ,
151+ } ,
152+ marginLeft : theme . spacingFunction ( 4 ) ,
153+ } ) ) ;
0 commit comments