Skip to content

Commit

Permalink
get coins button
Browse files Browse the repository at this point in the history
+ fixed paddings on iOS
  • Loading branch information
kakysha committed Sep 3, 2021
1 parent bb5a1a5 commit 61b17b0
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 19 deletions.
33 changes: 15 additions & 18 deletions public/views/walletHome.html
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ <h4 ng-show="!index.requiresMultipleSignatures" class="title m0" translate>Unsen
receive
-->
<div id="receive" class="receive tab-view" style="padding-bottom: 0px">
<div id="receive" class="receive tab-view">

<div ng-show="index.needsBackup" class="p60t row text-center">
<div class="large-12 columns">
Expand All @@ -256,8 +256,8 @@ <h4 ng-show="!index.requiresMultipleSignatures" class="title m0" translate>Unsen
</button>
</div>
</div>
<div ng-show="!index.needsBackup">
<div class="row">
<div ng-show="!index.needsBackup" class="receive_content">
<div>
<!-- Address-->
<div class="large-12 columns">
<h2 class="text-center m10t" translate>My Obyte address</h2>
Expand All @@ -282,7 +282,7 @@ <h2 class="text-center m10t" translate>My Obyte address</h2>
</div>
</div>
<div class="m10t" >
<h4 ng-class="{'enable_text_select': !index.isCordova}" class="size-12">
<h4 ng-class="{'enable_text_select': !index.isCordova}" class="size-14 bold">
{{index.shared_address || (home.generatingAddress ? '...' : home.addr[index.walletId])}}

</h4>
Expand All @@ -291,13 +291,6 @@ <h4 ng-class="{'enable_text_select': !index.isCordova}" class="size-12">
</div>

<div ng-show="home.addr[index.walletId]">
<div class="m10t text-center" ng-show="index.isCordova">
<span class="button outline dark-gray tiny round"
ng-click="home.shareAddress(home.addr[index.walletId])">
<i class="fi-share"></i>
<span translate>Share address</span>
</span>
</div>
<div class="line-t size-12 text-center">
<span ng-if="index.shared_address" translate>This address is shared with {{index.shared_address_cosigners}}.</span>
<span ng-if="!index.shared_address" translate>Share this wallet address to receive payments.</span>
Expand All @@ -306,15 +299,14 @@ <h4 ng-class="{'enable_text_select': !index.isCordova}" class="size-12">
</div>
</div>
</div>
<div class="row m20t" ng-if="!index.shared_address && !index.isSingleAddress">
<div class="large-12 columns">
<button class="button black expand round m0" ng-click="home.setAddress(true)"
ng-style="{'background-color':index.backgroundColor}" ng-disabled="home.blockUx || index.isOffline ||home.generatingAddress" translate>
<div class="m20t" ng-if="!index.shared_address && !index.isSingleAddress">
<div class="center">
<a ng-click="home.setAddress(true)" ng-disabled="home.blockUx || index.isOffline ||home.generatingAddress" translate style="border-bottom: 1px dotted">
Generate new address
</button>
</a>
</div>
</div>
<div class="m20t text-center m30b">
<div class="m20t text-center">
<div class="text-center hor-link" ng-show="!home.generatingAddress && home.addr[index.walletId]" ng-style="{'max-width' : (index.shared_address ? '100%' : '45%')}">
<a class="size-14" ng-click="home.openCustomizedAmountModal(index.shared_address || home.addr[index.walletId])" ng-style="{'color':index.backgroundColor, 'display': 'inline-block'}">
<span translate>Request a specific amount</span>
Expand All @@ -325,7 +317,12 @@ <h4 ng-class="{'enable_text_select': !index.isCordova}" class="size-12">
<span translate>Claim funds using textcoin</span>
</a>
</div>
<br><br><br>
</div>
<div class="get_coins">
<a data-href="https://getmein.ooo/?recipient={{index.shared_address || home.addr[index.walletId]}}&dst_network=Obyte" ng-click="$root.openExternalLink($event.target.dataset['href']);" class="button black round small m10b" translate ng-style="{'background-color':index.backgroundColor}" style="margin-top: -10px">Get me coins</a>
<div class="size-12 center columns" translate>
Transfer your ETH tokens to Obyte wallet or buy GBYTE.
</div>
</div>
</div>
</div> <!-- END Receive -->
Expand Down
23 changes: 22 additions & 1 deletion src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2199,7 +2199,11 @@ form#contacts-order {
.wallet_preferences {
position: absolute;
right: 15px;
margin-top: 15px;
top: 215px;
}

.bold {
font-weight: bold;
}

@supports (-webkit-touch-callout: none) {
Expand All @@ -2223,4 +2227,21 @@ not screen and (min-resolution: 192dpi) {
.emoji {
margin-right: 5px;
}
}

.receive .receive_content {
display: flex;
flex-direction: column;
height: 100%;
}
.receive .receive_content > * {
flex: 0 0 auto;
}
.receive .receive_content .get_coins {
flex:1 1 auto;

display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
5 changes: 5 additions & 0 deletions src/css/mobile.css
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,11 @@ textarea:focus
bottom: 58px;
overflow: auto;
}
@supports (bottom: env(safe-area-inset-bottom)) {
.tab-view {
bottom: calc(env(safe-area-inset-bottom, 0) + 58px);
}
}

.tab-view#chat {
background: #f0f4f9;
Expand Down

0 comments on commit 61b17b0

Please sign in to comment.