|
24 | 24 | class="position-relative p-0 navbar navbar-expand navbar-light shadow-sm border-bottom"> |
25 | 25 |
|
26 | 26 | <div id="header-content" |
27 | | - class="h-100 px-0 container-fluid"> |
| 27 | + tal:define="css 'h-100 px-0 '; |
| 28 | + css css + ('container-xxl' if config.limit_page_width else 'container-fluid'); |
| 29 | + css css + ('' if config.center_content else ' ms-0');" |
| 30 | + tal:attributes="class css"> |
28 | 31 |
|
29 | 32 | <!-- logo --> |
30 | 33 | <tal:logo replace="structure tile('logo')" /> |
|
72 | 75 | tal:attributes="class 'd-flex flex-column flex-shrink-0 pt-1 px-0 pb-5' + (' static' if config.sidebar_left_static else '')" |
73 | 76 | data-min-width="${config.sidebar_left_min_width}" |
74 | 77 | data-mode="${config.sidebar_left_mode}" |
75 | | - data-tiles="${context.dump(config.sidebar_left)}"> |
| 78 | + data-tiles="${context.dump(config.sidebar_left)}" |
| 79 | + data-static="${config.sidebar_left_static}"> |
76 | 80 |
|
77 | 81 | <div id="sidebar_collapse"> |
78 | 82 | <div class="collapse_btn btn btn-primary"> |
|
124 | 128 | <!-- content --> |
125 | 129 | <div id="content" |
126 | 130 | tal:define="css 'd-flex flex-column px-3 pb-4 py-2 overflow-auto'; |
127 | | - css css + ' container-xxl' if userid and config.limit_content_width else css; |
128 | | - css css + ' ms-0' if userid and not config.center_content else css;" |
| 131 | + css css + (' container-xxl' if userid and config.limit_content_width else css); |
| 132 | + css css + (' container-xxl' if userid and config.limit_page_width else css); |
| 133 | + css css + (' ms-0' if userid and not config.center_content else css);" |
129 | 134 | tal:attributes="class css" |
130 | 135 | ajax:bind="contextchanged" |
131 | 136 | ajax:action="content:#content:inner"> |
|
141 | 146 | tal:attributes="class 'd-flex flex-column flex-shrink-0 px-0 pb-5' + (' static' if config.sidebar_right_static else '')" |
142 | 147 | data-min-width="${config.sidebar_right_min_width}" |
143 | 148 | data-mode="${config.sidebar_right_mode}" |
144 | | - data-tiles="${context.dump(config.sidebar_right)}"> |
| 149 | + data-tiles="${context.dump(config.sidebar_right)}" |
| 150 | + data-static="${config.sidebar_right_static}"> |
145 | 151 |
|
146 | 152 | <div id="sidebar_collapse"> |
147 | 153 | <div class="collapse_btn btn btn-secondary"> |
|
0 commit comments