Skip to content

Commit de1d706

Browse files
authored
Merge pull request #145 from BuildFire/update-safe-area
update safe area
2 parents 6282e6c + 5b0f198 commit de1d706

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
,"pluginDescription":"Boost customer loyalty with our plugin, offering personalized engagement, rewards, and tailored experiences to keep users coming back and strengthen brand connections.\n"
55
,"pluginKeywords": "Points, Rewards, Loyalty, Redeem"
66
,"supportEmail":"support@buildfire.com"
7-
,"supportSite":"http://learn.appdocumentation.com/plugin-tutorials/loyalty-plugin-tutorial/"
7+
,"supportSite":"https://help.appdocumentation.com/how-to-use-the-loyalty-plugin"
88
,"offlineModeEnabled": true
99
,"control":{
1010
"content":{

widget/app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@
253253
})
254254
.run(['Location', '$location', '$rootScope', 'RewardCache', 'ViewStack', 'Context', '$window',
255255
function (Location, $location, $rootScope, RewardCache, ViewStack, Context, $window) {
256+
buildfire.appearance.titlebar.show();
257+
256258
buildfire.messaging.onReceivedMessage = function (msg) {
257259
switch (msg.type) {
258260
case 'AddNewItem':

widget/assets/styles/style.css

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ next-btn .amount-next-btn {
7979
}
8080

8181
html[safe-area="true"] body.has-safe-area .done-btn-container {
82-
padding-bottom: calc(2rem + constant(safe-area-inset-bottom)) !important;
83-
padding-bottom: calc(2rem + env(safe-area-inset-bottom)) !important;
82+
padding-bottom: calc(2rem + var(--bf-safe-area-inset-bottom)) !important;
8483
}
8584

8685
.done-btn {
@@ -105,7 +104,7 @@ html[safe-area="true"] body.has-safe-area .done-btn-container {
105104

106105
.layout1 .list-grid {
107106
padding: 12px !important;
108-
padding-bottom: calc(24px + env(safe-area-inset-bottom));
107+
padding-bottom: calc(24px + var(--bf-safe-area-inset-top));
109108
display: grid;
110109
grid-template-columns: repeat(2, 1fr);
111110
grid-column-gap: 12px;
@@ -460,7 +459,7 @@ html[browser="Firefox"] .layout3 .list-layout .list-item-media .list-media-holde
460459
.amount-holder,
461460
.code-holder,
462461
.awarded-holder {
463-
height: calc(100% - 4vh - env(safe-area-inset-bottom));
462+
height: calc(100% - 4vh - var(--bf-safe-area-inset-top));
464463
position: relative;
465464
display: flex;
466465
align-items: center;
@@ -487,7 +486,7 @@ html[browser="Firefox"] .layout3 .list-layout .list-item-media .list-media-holde
487486
.alert-danger {
488487
position: absolute;
489488
width: calc(100% - 32px);
490-
bottom: calc(0px + env(safe-area-inset-bottom));
489+
bottom: calc(0px + var(--bf-safe-area-inset-top));
491490
left: 50%;
492491
transform: translateX(-50%);
493492
}

0 commit comments

Comments
 (0)