Skip to content

Commit

Permalink
fix: scroll to full chat page - EXO-67772
Browse files Browse the repository at this point in the history
Before this change, when you open the full chat page and scroll outside the chat area, there is a gray border at the bottom of the chat page and there is a scrolling effect when we scroll outside of the conversation area. To resolve this issue, add the hide-shared-layout property as true in the page.xml file to remove the padding added after the containner chat application and remove the padding-bottom added by the PORTLET-FRAGMENT class. After this change, no more gray border and no more scrolling effect outside the chat area.
  • Loading branch information
akhanfir committed Dec 12, 2023
1 parent d5ccfa5 commit 4735a9d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions application/src/main/webapp/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<div class="VuetifyApp">
<div id="chatApplication">
<script>
require(['SHARED/chatBundle'], function(chatApp) {
chatApp.init();
});
</script>
</div>
</div>
5 changes: 5 additions & 0 deletions application/src/main/webapp/vue-app/components/ExoChatApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ export default {
},
},
created() {
this.removeClassPortal();
this.showHidePlatformAdminToolbar();
chatServices.initChatSettings(this.userSettings.username, false,
userSettings => {
Expand Down Expand Up @@ -431,6 +432,10 @@ export default {
} else {
return $('#PlatformAdminToolbarContainer').css('display', 'block') && $('#UITopBarContainerParent').css('display', 'block');
}
},
removeClassPortal() {
const element = document.getElementsByClassName('chatPage')[0];
element?.getElementsByClassName('PORTLET-FRAGMENT')[0]?.removeAttribute('class');
}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
<edit-permission>*:/platform/administrators</edit-permission>
<show-max-window>true</show-max-window>
<hide-shared-layout>true</hide-shared-layout>
<portlet-application>
<portlet>
<application-ref>chat</application-ref>
Expand Down

0 comments on commit 4735a9d

Please sign in to comment.