Skip to content

Commit

Permalink
chore: ui change
Browse files Browse the repository at this point in the history
clostao committed Jan 29, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 481cc63 commit 118e759
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/FilePreview/index.tsx
Original file line number Diff line number Diff line change
@@ -94,7 +94,7 @@ export const FilePreview = ({ metadata }: { metadata: OffchainMetadata }) => {

return (
<object
className='h-[50vh] w-full rounded bg-gray-100'
className='h-[50vh] w-full'
data={fileData?.uri}
type={fileData?.fileType}
aria-label={fileData?.fileName}
Original file line number Diff line number Diff line change
@@ -192,7 +192,7 @@ export const UploadedObjectInformation = ({
</div>
</div>
<span className='ml-2 text-xl font-semibold'>Preview</span>
<div className='flex flex-grow'>
<div className='flex flex-grow rounded bg-gray-100 px-2 py-4'>
<FilePreview metadata={object.metadata} />
</div>
</div>
5 changes: 1 addition & 4 deletions frontend/src/components/common/Arguments.tsx
Original file line number Diff line number Diff line change
@@ -36,10 +36,7 @@ export const Arguments: FC<Props> = ({ file, collapseAtEntry = 5 }) => {
}, [file]);

return (
<div
data-testid='testJsonDisplay'
className='w-full rounded bg-gray-100 px-2 py-4'
>
<div data-testid='testJsonDisplay' className='w-full'>
<ReactJson
src={args || {}}
iconStyle='circle'

0 comments on commit 118e759

Please sign in to comment.