Skip to content

Commit

Permalink
enhance DID display
Browse files Browse the repository at this point in the history
  • Loading branch information
eike-hass committed Aug 15, 2024
1 parent 01c4cdd commit dece4ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shared/credentials/CitizenCredential.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"id": "national_citizenship",
"name": "National Citizenship Credential",
"purpose":
"We can only allow open bank accounts for national citizens",
"We can only register companies for national citizens",
"constraints": {
"fields": [
{
Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/Company/CompanyData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const CompanyData: React.FC = () => {
relevantCredential.issuer
}
</p>
<p>to <b style={{wordBreak: "break-all"}}>{relevantCredential.credentialSubject.id}</b></p>
<p>to <Popover content={relevantCredential.credentialSubject.id}><b style={{overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis", width: "350px"}}>{relevantCredential.credentialSubject.id}</b></Popover></p>
</>
}
{credentialsDomains && (credentialsDomains !== 'in-flight') && (
Expand Down Expand Up @@ -179,7 +179,7 @@ const CompanyData: React.FC = () => {
{issuerDomains && (issuerDomains !== 'in-flight') && (
<DomainCheck validatedDomains={issuerDomains} />
)}
<p>to <b style={{wordBreak: "break-all"}}>{state.COMPANY_HOUSE?.connectedDID}</b></p>
<p>to <Popover content={state.COMPANY_HOUSE?.connectedDID}><b style={{overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis", width: "350px"}}>{state.COMPANY_HOUSE?.connectedDID}</b></Popover></p>
</>
}
<Form dataFields={emptyFields} onSubmit={onSubmit} submitLabel={t("actions.continue")} />
Expand Down

0 comments on commit dece4ce

Please sign in to comment.