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
9 changes: 7 additions & 2 deletions widget/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,13 @@

const scrollTop = scrollContainer.scrollTop;
if (scrollTop > lastScrollTop) {
// User is scrolling down
navbar.style.transform = 'translateY(-100%)';
const safeAreaTopValue = getComputedStyle(document.documentElement).getPropertyValue('--bf-safe-area-inset-top').trim();
if (parseFloat(safeAreaTopValue)) {
navbar.style.transform = 'translateY(calc(-50px - var(--bf-safe-area-inset-top)))';
}
else {
navbar.style.transform = 'translateY(-50px)';
}
} else {
// User is scrolling up
navbar.style.transform = 'translateY(0)';
Expand Down
32 changes: 8 additions & 24 deletions widget/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ body {
line-height: 1;
height: 100%;
overflow: hidden !important;
position: absolute;
position: relative;
top: 0%;
right: 0;
left: 0%;
Expand All @@ -171,6 +171,11 @@ table {
html{
font-size: 16px !important;
}

body {
margin-top: var(--bf-safe-area-inset-top) !important;
margin-bottom: var(--bf-safe-area-inset-bottom) !important;
}
/* Fixed Bottom */
.main_view,.main-thread-section{height: 100%; overflow: hidden !important;}
.holder.has-bottom {
Expand Down Expand Up @@ -1273,19 +1278,7 @@ textarea {
vertical-align: 3px;
color: #5f5f5f !important;
}
html[safe-area="true"] body {
padding-bottom: 0px !important;
-webkit-overflow-scrolling: auto;
}
html[safe-area="true"] .holder.bottom-post {
height: calc(env(safe-area-inset-bottom) + 43px);
height: calc(constant(safe-area-inset-bottom) + 43px);
}

html[safe-area="true"] .post-section.has-comment-box {
padding-bottom: calc(env(safe-area-inset-bottom) + 43px);
padding-bottom: calc(constant(safe-area-inset-bottom) + 43px);
}
.plus-minus-toggle {
cursor: pointer;
/* padding-left: 30px;
Expand All @@ -1312,11 +1305,6 @@ html[safe-area="true"] .post-section.has-comment-box {
transform: rotate(180deg);
}

html[buildfire][safe-area="true"] body {
-webkit-overflow-scrolling: auto !important;
}


.blankState {
padding-top: 20px;
}
Expand Down Expand Up @@ -1535,6 +1523,7 @@ button.btn-danger-outlined:hover, button.btn-danger-outlined:focus{
transition: transform .3s ease-in-out;
position: fixed;
z-index: 1000 !important;
transform: translateY(0);
}

.head-btn p.text-primary {
Expand Down Expand Up @@ -1610,11 +1599,6 @@ button.btn-danger-outlined:hover, button.btn-danger-outlined:focus{
overflow: scroll;
}

html[safe-area="true"] .blocked-users {
height: calc(100vh - constant(safe-area-inset-bottom)) !important;
height: calc(100vh - env(safe-area-inset-bottom)) !important;
}

.blocked-users-item {
padding: 1rem;
}
Expand All @@ -1628,4 +1612,4 @@ button.btn-danger-outlined:hover, button.btn-danger-outlined:focus{
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
}
}
1 change: 0 additions & 1 deletion widget/controllers/widget.wall.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1706,7 +1706,6 @@
// On Logout
Buildfire.auth.onLogout(function () {
console.log('User loggedOut from Widget Wall Page');
buildfire.appearance.titlebar.show();
WidgetWall.SocialItems.userDetails = {};
WidgetWall.groupFollowingStatus = false;
buildfire.notifications.pushNotification.unsubscribe({
Expand Down
3 changes: 0 additions & 3 deletions widget/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,6 @@
<h5 class="titleBarTheme text-center" style="margin-top: 35px;">Something went wrong!! Please try again</h5>
</div>
</div>
<script>
buildfire.appearance.titlebar.show();
</script>
<script src="../../../scripts/buildfire/components/web-components/buildfire-components.js"></script>
<script src="../../../scripts/buildfire/services/notifications/pushNotifications.js"></script>
<script src="../../../scripts/buildfire/components/toast/toast.js"></script>
Expand Down