Skip to content

Commit

Permalink
Merge branch 'emmanuel2'
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadhassoun366 committed Oct 3, 2024
2 parents 32bc557 + a4f8516 commit f246a8e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/app/(header-footer-layout)/blocks/[blocknumber]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function SingleBlock({ params }: BlockTransactionsProps) {
if (block_error || (!block_loading && !block_data)) return <ErrorComponent />;

return (
<div className="container-2 mx-auto dark:text-white text-abrandc-dark-grey">
<div className="container-2 mx-auto dark:text-white text-abrandc-dark-grey pb-6">
{/* Title */}
<div className="flex items-center gap-x-2">
<h1 className=" py-1 text-[36px] font-bold leading-[44px]">Blocks Details</h1>
Expand Down Expand Up @@ -245,7 +245,7 @@ export default function SingleBlock({ params }: BlockTransactionsProps) {

{/* Disclaimer */}
<div className="flex gap-x-2 ">
<i className="far fa-info-circle text-agrey-500 dark:text-agrey-600 " />
<i className="far fa-info-circle text-agrey-500 dark:text-agrey-600 align-middle mt-2 " />
<p className="text-sm text-agrey-500 dark:text-agrey-600 leading-[24px] break-all">
Blocks are batches of transactions linked via cryptographic hashes. Any
tampering of a block would invalidate all following blocks as all subsequent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function TransactionDetails({ params }: TransactionDetailsProps)
if (txnError || (!txnLoading && !txnData)) return <ErrorComponent />;

return (
<div className="container-2 mx-auto dark:text-white text-abrandc-dark-grey">
<div className="container-2 mx-auto dark:text-white text-abrandc-dark-grey pb-6">
{/* Title */}
<div className="flex xl:flex-row flex-col justify-between xl:items-center">
<div className="flex flex-1 items-center xl:gap-x-2 gap-x-8 ">
Expand Down Expand Up @@ -464,7 +464,7 @@ export default function TransactionDetails({ params }: TransactionDetailsProps)

{/* Disclaimer */}
<div className="flex gap-x-2 ">
<i className="far fa-info-circle text-agrey-500 dark:text-agrey-600 " />
<i className="far fa-info-circle text-agrey-500 dark:text-agrey-600 mt-2 md:mt-1" />
<p className="text-sm text-agrey-500 dark:text-agrey-600 leading-[24px] break-all">
A transaction is a cryptographically signed instruction that changes the
blockchain state. Block explorers trach the details of all transactions in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default function Pagination({ metadata, onPageChange }: PaginationProps)
<i className="far fa-angle-left fa-lg"></i>
</button>

<div className="w-[220px] sm:w-full sm:overflow-visible overflow-hidden">
<div className="w-[238px] sm:w-full sm:overflow-visible overflow-hidden hide-scrollbar">
<ul className="flex gap-x-1 sm:overflow-visible overflow-x-auto hide-scrollbar">
{pageButtons.map((btn, idx) => (
<li key={idx} className="shrink-0">
Expand Down
9 changes: 9 additions & 0 deletions src/components/internal/pagination/pagination.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,12 @@ input::-webkit-inner-spin-button {
.next-button[disabled] {
cursor: not-allowed;
}

// for the scroll bar in the pagination
.hide-scrollbar {
scrollbar-width: none; /* For Firefox */
-ms-overflow-style: none; /* For Internet Explorer and Edge */
}
.hide-scrollbar::-webkit-scrollbar {
display: none; /* For Chrome, Safari, and Opera */
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type TransactionTooltipDetailsProps = {

const TransactionTooltipDetails = ({ fee, nonce }: TransactionTooltipDetailsProps) => {
return (
<div className="flex flex-col p-3 dark:bg-abrandc-dark-blackish bg-white text-agrey-900 dark:text-white rounded-2xl w-60 z-index-3">
<div className="flex flex-col p-3 dark:bg-abrandc-dark-blackish bg-white text-agrey-900 dark:text-white rounded-2xl w-64 z-index-3">
<div className="text-left p-1">
<h1>Additional Info</h1>
</div>
Expand All @@ -28,7 +28,7 @@ const TransactionTooltipDetails = ({ fee, nonce }: TransactionTooltipDetailsProp
/>

<p className="text-abrandc-dark-green">success</p>
<h6 className="text-sm font-normal w-full text-agrey-500">
<h6 className="text-sm font-normal w-full text-agrey-500 text-nowrap">
(1 block confirmation)
</h6>
</div>
Expand Down

0 comments on commit f246a8e

Please sign in to comment.