]> _ Git - cubist_cms-back.git/commitdiff
wip #4212 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 19 May 2022 08:07:54 +0000 (10:07 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 19 May 2022 08:07:54 +0000 (10:07 +0200)
src/resources/views/form/shortcuts.blade.php

index 6f03ce9706a7c6d21115481ac5b95d2ab3f9ab7e..dd08795f9086384079d07d62f23089b3758a6d5a 100644 (file)
 
                 #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');