Skip to content
Open
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
2 changes: 1 addition & 1 deletion src/Containers/Footer/Footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@
width: 50%;
height: 100%;
}
}
}
76 changes: 40 additions & 36 deletions src/Pages/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,54 +176,58 @@ const Home = () => {


return (
<IonPage className="ion-page-width">
<IonPage
className="ion-page-width"
>
<HomeHeader>
<BalanceCard />
</HomeHeader>
<IonContent scrollY={false}>
<IonRefresher slot="fixed" onIonRefresh={handleRefresh}>
<IonRefresherContent></IonRefresherContent>
</IonRefresher>
<Virtuoso
style={{ height: "100%" }}
data={operations}
defaultItemHeight={56}
itemContent={(_, op) => (

<div
key={op.operationId}
style={{
minHeight: 56,
padding: "0 1rem"
}}
>
<IonContent
scrollY={false}
>
<IonRefresher slot="fixed" onIonRefresh={handleRefresh}>
<IonRefresherContent></IonRefresherContent>
</IonRefresher>
<Virtuoso
style={{ height: "100%" }}
data={operations}
defaultItemHeight={56}
itemContent={(_, op) => (

<div
key={op.operationId}
style={{
minHeight: 56,
padding: "0 1rem"
}}
>
<HistoryItem
operation={op}
handleSelectOperation={handleSelectOperation}
/>
</div>
)}
/>
</IonContent>
<IonFooter className={`ion-no-border ${styles["footer"]}`}>
<div className={styles["toolbar"]}>
<div className={styles["button-container"]}>
<IonButton color="light" className={`${styles["toolbar-button"]} ${styles["toolbar-button-left"]}`} expand="full" routerLink="/receive" routerDirection="forward">
<IonIcon slot="start" icon={downloadOutline} ></IonIcon>
Receive
</IonButton>
</div>
<div className={styles["button-container"]}>
<IonButton color="light" className={`${styles["toolbar-button"]} ${styles["toolbar-button-right"]}`} expand="full" routerLink="/send" routerDirection="forward">
<IonIcon slot="start" icon={paperPlaneOutline} ></IonIcon>
Send
</IonButton>
</div>
<IonButton color="primary" shape="round" className={styles["fab-button"]} onClick={openScan}>
<IonIcon slot="icon-only" icon={qrCodeOutline} />
</IonContent>
<IonFooter className={`ion-no-border ${styles["footer"]}`}>
<div className={styles["toolbar"]}>
<div className={styles["button-container"]}>
<IonButton color="light" className={`${styles["toolbar-button"]} ${styles["toolbar-button-left"]}`} expand="full" routerLink="/receive" routerDirection="forward">
<IonIcon slot="start" icon={downloadOutline} ></IonIcon>
Receive
</IonButton>
</div>
</IonFooter>
<div className={styles["button-container"]}>
<IonButton color="light" className={`${styles["toolbar-button"]} ${styles["toolbar-button-right"]}`} expand="full" routerLink="/send" routerDirection="forward">
<IonIcon slot="start" icon={paperPlaneOutline} ></IonIcon>
Send
</IonButton>
</div>
<IonButton color="primary" shape="round" className={styles["fab-button"]} onClick={openScan}>
<IonIcon slot="icon-only" icon={qrCodeOutline} />
</IonButton>
</div>
</IonFooter>
{
loadOperationModal &&
<Suspense fallback={null}>
Expand Down
21 changes: 2 additions & 19 deletions src/Pages/Home/styles/index.module.scss
Original file line number Diff line number Diff line change
@@ -1,67 +1,50 @@
.footer {




.toolbar {
display: flex !important;
position: relative;

padding-bottom: var(--ion-safe-area-bottom, 0px);

.button-container:first-of-type {
border-right: 1px solid var(--ion-color-primary);
}



.button-container {
flex: 1;


ion-button.toolbar-button {
flex: 1;
margin: 0;



&::part(native) {
box-shadow: none;
height: 56px;
border-top: 2px solid var(--ion-color-primary);
margin: 0px;

}

&.toolbar-button-left {
&::part(native) {
border-left: 2px solid var(--ion-color-primary);


}
}

&.toolbar-button-right {
&::part(native) {
border-right: 2px solid var(--ion-color-primary);

}
}

}
}


.fab-button {
margin: 0;
z-index: 999999;
z-index: 10;
position: absolute;
height: 50px;
width: 50px;
transform: translate(-50%, 0);
left: 50%;
top: -25px;
}


}
}
4 changes: 4 additions & 0 deletions src/theme/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -843,3 +843,7 @@ ion-popover.custom-dropdown-popover {
.ion-content-no-footer::part(scroll) {
padding-bottom: var(--ion-safe-area-bottom, 0);
}

ion-footer {
padding-bottom: var(--ion-safe-area-bottom, 0px);
}