Skip to content

Commit

Permalink
fix: add bottom padding when showing Raven chat on Desk
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkothari22 committed Mar 18, 2024
1 parent 5efce00 commit 8006106
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions raven/public/js/raven.bundle.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
$(document).on('app_ready', function () {
if (frappe.boot.show_raven_chat_on_desk && frappe.user.has_role("Raven User")) {

// If on mobile, do not show the chat
if (frappe.is_mobile()) {
return;
}
let main_section = $(document).find('.main-section');

// Add bottom padding to the main section
main_section.css('padding-bottom', '60px');

let chat_element = $(document.createElement('div'));
chat_element.addClass('raven-chat');

Expand Down

0 comments on commit 8006106

Please sign in to comment.