Fixed effect on collapsed sidebar
authorMarcel Werk <burntime@woltlab.com>
Tue, 18 Dec 2012 19:14:25 +0000 (20:14 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 18 Dec 2012 19:14:25 +0000 (20:14 +0100)
com.woltlab.wcf/template/header.tpl

index 6ae57b130b20b6e85da6e90044f485e84809f5c3..91ac29fc897fb780197840be21006e0d2714cc58 100644 (file)
@@ -36,7 +36,7 @@
        </div>
 </header>
 
-<div id="main" class="layoutFluid{if $sidebarOrientation|isset && $sidebar|isset} sidebarOrientation{@$sidebarOrientation|ucfirst} clearfix{/if}">
+<div id="main" class="layoutFluid{if $sidebarOrientation|isset && $sidebar|isset} sidebarOrientation{@$sidebarOrientation|ucfirst} clearfix{if $sidebarOrientation == 'right' && $sidebarCollapsed} sidebarCollapsed{/if}{/if}">
        <div>
                {if $sidebar|isset}
                        <aside class="sidebar"{if $sidebarOrientation|isset && $sidebarOrientation == 'right'} data-is-open="{if $sidebarCollapsed}false{else}true{/if}" data-sidebar-name="{$sidebarName}"{/if}>