Remove fullscreen mode in template diff
authorjoshuaruesweg <ruesweg@woltlab.com>
Sat, 22 Aug 2020 14:26:44 +0000 (16:26 +0200)
committerjoshuaruesweg <ruesweg@woltlab.com>
Sat, 22 Aug 2020 14:26:44 +0000 (16:26 +0200)
The fullscreen mode does not have any advantage at this point because the diff is also displayed with a height of 700px (just like without fullscreen mode).

wcfsetup/install/files/acp/style/layout.scss
wcfsetup/install/files/acp/templates/templateDiff.tpl

index 109207753bf78cced179ee48c2e546f65ba63631..c03fb69b19e63456a92271d993d639f3e724a67e 100644 (file)
@@ -386,9 +386,3 @@ $wcfAcpSubMenuWidth: 300px;
 #uploadCoverPhoto > .button {
        vertical-align: top;
 }
-
-/* Fullscreen template comparison */
-#fullscreenContainer {
-       background-color: #fafafa;
-       padding: 0 20px;
-}
index 3f2b8ddcd202eed7aa3fb74224158fa282e2f580..441d636d1c04aa931d77bdef6fe016403b30cb1b 100644 (file)
@@ -11,8 +11,6 @@
                        <ul>
                                {content}
                                        {if $diff}
-                                               <li><a id="requestFullscreen" class="button" style="display: none;"><span class="icon icon16 fa-arrows-alt"></span> <span>{lang}wcf.global.button.fullscreen{/lang}</span></a></li>
-                                               
                                                {if $parent->templateGroupID}
                                                        <li><a href="{link controller='TemplateEdit' id=$parent->templateID}{/link}" class="button"><span class="icon icon16 fa-pencil"></span> <span>{lang}wcf.global.button.edit{/lang}</span></a></li>
                                                {/if}
        </div>
        <script data-relocate="true">
        $(function() {
-               if (WCF.System.Fullscreen.isSupported()) {
-                       $('#requestFullscreen').show();
-               }
-               
                // sync scrolling
                var sync = $('#left, #right');
                function syncPosition() {
                }
                
                sync.on('scroll', syncPosition);
-               
-               $('#requestFullscreen').on('click', function() {
-                       var element = $('#fullscreenContainer')[0];
-                       WCF.System.Fullscreen.toggleFullscreen(element);
-               });
        });
        </script>
 {/if}