mirror of
https://hk.gh-proxy.com/https://github.com/NodeBB/nodebb-theme-harmony.git
synced 2025-10-03 05:01:05 +08:00
dont use sidebar width if its not visible
This commit is contained in:
parent
e6c3cc8461
commit
cd5a435869
1 changed files with 2 additions and 1 deletions
|
@ -31,7 +31,8 @@ $(document).ready(function () {
|
|||
const css = {
|
||||
width: $('#panel').width(),
|
||||
};
|
||||
css[isRtl ? 'right' : 'left'] = $('.sidebar-left').outerWidth(true);
|
||||
const sidebarEl = $('.sidebar-left');
|
||||
css[isRtl ? 'right' : 'left'] = sidebarEl.is(':visible') ? sidebarEl.outerWidth(true) : 0;
|
||||
$('[component="composer"]').css(css);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue