File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,9 @@ const TitleButton = ({
4747 onClick = { onTitleClick }
4848 title = { title }
4949 >
50- { prefixIcon }
50+ < div className = "mr-2" >
51+ { prefixIcon }
52+ </ div >
5153 < span className = { `${ namePrefix } -card-title mb-0 truncate-1-line` } >
5254 { title }
5355 </ span >
Original file line number Diff line number Diff line change @@ -22,8 +22,10 @@ const TitleLink = ({
2222 to = { titleLink }
2323 title = { title }
2424 >
25- { prefixIcon }
26- < span className = { `${ namePrefix } -card-title mb-0 truncate-1-line` } >
25+ < div className = "mr-2" >
26+ { prefixIcon }
27+ </ div >
28+ < span className = { `${ namePrefix } -card-title mb-0 truncate-1-line text-left` } >
2729 { title }
2830 </ span >
2931 </ Button >
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ const SectionCard = ({
257257 isExpanded = { isExpanded }
258258 onTitleClick = { handleExpandContent }
259259 namePrefix = { namePrefix }
260- prefixIcon = { < UpstreamInfoIcon upstreamInfo = { upstreamInfo } /> }
260+ prefixIcon = { < UpstreamInfoIcon upstreamInfo = { upstreamInfo } size = "md" /> }
261261 />
262262 ) ;
263263
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ const SubsectionCard = ({
205205 isExpanded = { isExpanded }
206206 onTitleClick = { handleExpandContent }
207207 namePrefix = { namePrefix }
208- prefixIcon = { < UpstreamInfoIcon upstreamInfo = { upstreamInfo } /> }
208+ prefixIcon = { < UpstreamInfoIcon upstreamInfo = { upstreamInfo } size = "sm" /> }
209209 />
210210 ) ;
211211
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ const UnitCard = ({
170170 title = { displayName }
171171 titleLink = { getTitleLink ( id ) }
172172 namePrefix = { namePrefix }
173- prefixIcon = { < UpstreamInfoIcon upstreamInfo = { upstreamInfo } size = "sm " /> }
173+ prefixIcon = { < UpstreamInfoIcon upstreamInfo = { upstreamInfo } size = "xs " /> }
174174 />
175175 ) ;
176176
Original file line number Diff line number Diff line change 1515@import " ./modal-iframe" ;
1616@import " ./alert-message" ;
1717@import " ./inplace-text-editor/InplaceTextEditor" ;
18+ @import " ./upstream-info-icon/UpstreamInfoIcon" ;
Original file line number Diff line number Diff line change 1+ .upstream-info-icon {
2+ & .size-md {
3+ width : 32px ;
4+ height : 26px ;
5+ }
6+
7+ & .size-sm {
8+ width : 28px ;
9+ height : 22px ;
10+ }
11+
12+ & .size-xs {
13+ width : 24px ;
14+ height : 18px ;
15+ }
16+
17+ .pgn__icon {
18+ // Removes the right margin
19+ margin-right : 0 !important ;
20+ }
21+ };
Original file line number Diff line number Diff line change @@ -32,10 +32,12 @@ export const UpstreamInfoIcon: React.FC<UpstreamInfoIconProps> = ({ upstreamInfo
3232 } ;
3333
3434 return (
35- < Icon
36- { ...iconProps }
37- size = { size }
38- className = "mr-1"
39- />
35+ < div className = { `upstream-info-icon size-${ size } box-shadow-centered-1 d-flex justify-content-center` } >
36+ < Icon
37+ { ...iconProps }
38+ size = { size }
39+ className = "mr-1"
40+ />
41+ </ div >
4042 ) ;
4143} ;
You can’t perform that action at this time.
0 commit comments