@@ -26,18 +26,33 @@ const StyledCard = styled(Card)`
2626 height: auto;
2727` ;
2828
29- const TextContainer = styled . div `
29+ const TopContent = styled . div `
30+ display: flex;
31+ flex-direction: column;
3032 padding: ${ responsiveSize ( 8 , 24 ) } ;
33+ gap: 8px;
34+ overflow-wrap: break-word;
35+
3136 > * {
3237 overflow-wrap: break-word;
3338 margin: 0;
3439 }
35- > h3 {
40+ p {
41+ margin: 0;
42+ }
43+ h3 {
3644 display: inline-block;
37- margin: 0px 4px ;
45+ margin: 0 ;
3846 }
3947` ;
4048
49+ const IndexAndName = styled . div `
50+ display: flex;
51+ flex-direction: row;
52+ align-items: center;
53+ gap: 6px;
54+ ` ;
55+
4156const Index = styled . p `
4257 display: inline-block;
4358` ;
@@ -49,6 +64,9 @@ const StyledReactMarkdown = styled(ReactMarkdown)`
4964 code {
5065 color: ${ ( { theme } ) => theme . secondaryText } ;
5166 }
67+ p {
68+ margin: 0;
69+ }
5270` ;
5371
5472const BottomShade = styled . div `
@@ -65,25 +83,7 @@ const BottomShade = styled.div`
6583 }
6684` ;
6785
68- const AccountContainer = styled . div `
69- display: flex;
70- flex-direction: row;
71- gap: 8px;
72- align-items: center;
73-
74- canvas {
75- width: 24px;
76- height: 24px;
77- }
78-
79- > * {
80- flex-basis: 1;
81- flex-shrink: 0;
82- margin: 0;
83- }
84- ` ;
85-
86- const LeftContent = styled . div `
86+ const BottomLeftContent = styled . div `
8787 display: block;
8888
8989 & > *:not(:last-child) {
@@ -105,21 +105,45 @@ const LeftContent = styled.div`
105105 ) }
106106` ;
107107
108+ const AccountContainer = styled . div `
109+ display: flex;
110+ flex-direction: row;
111+ gap: 8px;
112+ align-items: center;
113+
114+ canvas {
115+ width: 24px;
116+ height: 24px;
117+ }
118+
119+ > * {
120+ flex-basis: 1;
121+ flex-shrink: 0;
122+ margin: 0;
123+ }
124+ ` ;
125+
108126const HoverStyle = css `
109127 :hover {
110128 text-decoration: underline;
111129 color: ${ ( { theme } ) => theme . primaryBlue } ;
112130 cursor: pointer;
113131 }
132+ :hover {
133+ label {
134+ text-decoration: underline;
135+ color: ${ ( { theme } ) => theme . primaryBlue } ;
136+ cursor: pointer;
137+ }
138+ }
114139` ;
115140
116141const Address = styled . p `
117142 ${ HoverStyle }
118143 margin: 0;
119144` ;
120145
121- const Timestamp = styled . label `
122- color: ${ ( { theme } ) => theme . secondaryText } ;
146+ const StyledExternalLink = styled ( ExternalLink ) `
123147 ${ HoverStyle }
124148` ;
125149
@@ -191,29 +215,25 @@ const EvidenceCard: React.FC<IEvidenceCard> = ({
191215
192216 return (
193217 < StyledCard >
194- < TextContainer >
195- < Index > #{ index } :</ Index >
196- { name && description ? (
197- < >
198- < h3 > { name } </ h3 >
199- < StyledReactMarkdown > { description } </ StyledReactMarkdown >
200- </ >
201- ) : (
202- < p > { evidence } </ p >
203- ) }
204- </ TextContainer >
218+ < TopContent >
219+ < IndexAndName >
220+ < Index > #{ index } : </ Index >
221+ < h3 > { name } </ h3 >
222+ </ IndexAndName >
223+ { name && description ? < StyledReactMarkdown > { description } </ StyledReactMarkdown > : < p > { evidence } </ p > }
224+ </ TopContent >
205225 < BottomShade >
206- < LeftContent >
226+ < BottomLeftContent >
207227 < AccountContainer >
208228 < Identicon size = "24" string = { sender } />
209229 < ExternalLink to = { addressExplorerLink } rel = "noopener noreferrer" target = "_blank" >
210230 < Address > { shortenAddress ( sender ) } </ Address >
211231 </ ExternalLink >
212232 </ AccountContainer >
213- < ExternalLink to = { transactionExplorerLink } rel = "noopener noreferrer" target = "_blank" >
214- < Timestamp > { formatDate ( Number ( timestamp ) , true ) } </ Timestamp >
215- </ ExternalLink >
216- </ LeftContent >
233+ < StyledExternalLink to = { transactionExplorerLink } rel = "noopener noreferrer" target = "_blank" >
234+ < label > { formatDate ( Number ( timestamp ) , true ) } </ label >
235+ </ StyledExternalLink >
236+ </ BottomLeftContent >
217237 { fileURI && fileURI !== "-" ? (
218238 < FileLinkContainer >
219239 < StyledInternalLink to = { `attachment/?url=${ getIpfsUrl ( fileURI ) } ` } >
0 commit comments