Skip to content

Commit

Permalink
Fix read button placement and lower weight of empty methods messages (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pabl0cks authored Feb 3, 2024
1 parent ebf5464 commit cc20de0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const ContractReadMethods = ({
.sort((a, b) => (b.inheritedFrom ? b.inheritedFrom.localeCompare(a.inheritedFrom) : 1));

if (!functionsToDisplay.length) {
return <>Please select read methods from the sidebar.</>;
return <span className="font-light text-gray-500">Please select read methods from the sidebar.</span>;
}

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ export const ContractWriteMethods = ({
.sort((a, b) => (b.inheritedFrom ? b.inheritedFrom.localeCompare(a.inheritedFrom) : 1));

if (!functionsToDisplay.length) {
return <>Please select write methods from the sidebar.</>;
return <span className="font-light text-gray-500">Please select write methods from the sidebar.</span>;
}

console.log("functionsToDisplay", functionsToDisplay);

return (
<>
{functionsToDisplay.map(({ fn, inheritedFrom }, idx) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const ReadOnlyFunctionForm = ({
<InheritanceTooltip inheritedFrom={inheritedFrom} />
</p>
{inputElements}
<div className="flex justify-between gap-2 flex-wrap">
<div className="flex justify-end flex-wrap w-full">
<div className="flex-grow w-4/5">
{result !== null && result !== undefined && (
<div className="bg-secondary rounded-3xl text-sm px-4 py-1.5 break-words">
Expand Down

0 comments on commit cc20de0

Please sign in to comment.