projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f33f327
)
Intelligently adjust menubar for D7 toolbar toggle
author
Coleman Watts
<coleman@civicrm.org>
Mon, 15 Oct 2018 21:22:59 +0000
(17:22 -0400)
committer
Coleman Watts
<coleman@civicrm.org>
Mon, 15 Oct 2018 21:22:59 +0000
(17:22 -0400)
js/crm.drupal7.js
patch
|
blob
|
blame
|
history
diff --git
a/js/crm.drupal7.js
b/js/crm.drupal7.js
index 4be65e41065e27201a0c8fb9245bb3dec818b5a2..facd7f1a095bd2ba857e139dfa7ce0dcf115fe81 100644
(file)
--- a/
js/crm.drupal7.js
+++ b/
js/crm.drupal7.js
@@
-11,5
+11,7
@@
CRM.$(function($) {
$('#toolbar').css('z-index', '');
}
});
- $('#civicrm-menu').css({'width': '97%'});
+ if ($('#toolbar a.toggle').length) {
+ $('#civicrm-menu').css({width: 'calc(100% - 40px)'});
+ }
});