8000 Schema Card consistency across all pages by bhavanakarwade · Pull Request #299 · credebl/studio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Schema Card consistency across all pages #299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions src/commonComponents/SchemaCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const SchemaCard = (props: {className?:string, schemaName: string, version: stri
return (
<Card => {
props.onClickCallback(props.schemaId, props.attributes, props.issuerDid, props.created)
}} className='transform transition duration-500 hover:scale-105 hover:bg-gray-50 cursor-pointer' style={{ maxWidth: '100%', maxHeight: '100%', overflow: 'auto' }}>
}} className='transform transition duration-500 hover:scale-105 hover:bg-gray-50 cursor-pointer' style={{ width: '100%', height: '260px', overflow: 'auto' }}>
<div className="flex justify-between items-start">
<div>
<h5 className="text-xl font-bold leading-none text-gray-900 dark:text-white">
Expand Down Expand Up @@ -39,31 +39,32 @@ const SchemaCard = (props: {className?:string, schemaName: string, version: stri
<ul className="divide-y divide-gray-200 dark:divide-gray-700">
<li className="py-3 sm:py-2">
<div className="flex items-center space-x-4">
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white overflow-hidden overflow-ellipsis">
<div className="block text-base font-semibold text-gray-900 dark:text-white overflow-hidden overflow-ellipsis">
Attributes:
<div className="flex flex-wrap items-start">

{props.attributes && props.attributes.length > 0 && (
<>
{props?.attributes?.slice(0, 4).map((element, index) => (
{props?.attributes?.slice(0, 3).map((element, index) => (
<div key={index}>
<span
key={index}
style={{ display: 'block' }}
className="m-1 bg-blue-100 text-blue-800 text-sm font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300"
>
{element?.attributeName}
</span>
</div>
))}
{props?.attributes?.length > 3 && <span>...</span>}
</>
)}
</div>
</div>
</div>

</li>

</ul>
</div>
</Card>
)
}


export default SchemaCard
Loading
0