Skip to content

Commit

Permalink
fix: move controls into sight
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Jun 10, 2024
1 parent ac525e4 commit 614e678
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
</td>
</tr>
</thead>
<tbody>
<tbody id="mainTableBody">
<tr id="Amount">
<th>
<div>Amount</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export async function renderTransaction(): Promise<Success> {
} else {
const requestedAmountElement = insertErc721PermitTableData(app.reward, table);
table.setAttribute(`data-make-claim`, "ok");
table.setAttribute(`data-additional-data-size`, "large");
renderNftSymbol({
tokenAddress: app.reward.tokenAddress,
explorerUrl: networkExplorers[app.reward.networkId],
Expand All @@ -71,7 +72,7 @@ export async function renderTransaction(): Promise<Success> {
}).catch(console.error);

const toElement = document.getElementById(`rewardRecipient`) as Element;
renderEnsName({ element: toElement, address: app.reward.beneficiary }).catch(console.error);
renderEnsName({ element: toElement, address: app.reward.beneficiary, networkID: app.networkId }).catch(console.error);

getMakeClaimButton().addEventListener("click", claimErc721PermitHandler(app.reward));
}
Expand Down
3 changes: 3 additions & 0 deletions static/styles/rewards/claim-table.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ table[data-make-claim-rendered] button.show > svg#claim-loader {
table[data-make-claim-rendered] button.hide > svg#claim-icon {
display: unset;
}
table[data-details-visible="true"][data-additional-data-size="large"] #mainTableBody {
transform: translate(-50%, 15%);
}
table #controls {
opacity: 0;
transition: 1s ease-in-out opacity;
Expand Down

0 comments on commit 614e678

Please sign in to comment.