#form_shortcuts .card {
padding: 30px;
+ overflow: auto;
}
#form_shortcuts a {
+ display: block;
+ font-size: 90%;
+ font-weight: 500;
+ padding-left: 12px;
+ }
+
+ #form_shortcuts a.big, #form_shortcuts a.super {
display: block;
font-size: 100%;
font-weight: 500;
+ padding-left: 0;
}
</style>
(function ($) {
$(function () {
+ function formSidebarResize() {
+ var hh = $(window).outerHeight();
+ $("#form_shortcuts .card").each(function () {
+ var r = this.getBoundingClientRect();
+ $(this).css('max-height', hh - r.top - 30);
+ });
+ }
+
+ $(window).on('resize', formSidebarResize);
+ $(window).on('scroll', formSidebarResize);
+ formSidebarResize();
+ for (var i = 0; i <= 6; i++) {
+ setTimeout(formSidebarResize, 200 * i);
+ }
+
$("#saveActions .btn-form-cancel").remove();
$("#saveActions").insertBefore('#form_shortcuts');