|
50 | 50 | v-divider
|
51 | 51 | v-container.grey.pa-0(fluid, :class='$vuetify.theme.dark ? `darken-4-l3` : `lighten-4`')
|
52 | 52 | v-row.page-header-section(no-gutters, align-content='center', style='height: 90px;')
|
53 |
| - v-col.page-col-content.is-page-header(offset-xl='2', offset-lg='3', style='margin-top: auto; margin-bottom: auto;', :class='$vuetify.rtl ? `pr-4` : `pl-4`') |
| 53 | + v-col.page-col-content.is-page-header( |
| 54 | + :offset-xl='tocPosition === `left` ? 2 : 0' |
| 55 | + :offset-lg='tocPosition === `left` ? 3 : 0' |
| 56 | + :xl10='tocPosition === `right`' |
| 57 | + :lg9='tocPosition === `right`' |
| 58 | + style='margin-top: auto; margin-bottom: auto;' |
| 59 | + :class='$vuetify.rtl ? `pr-4` : `pl-4`' |
| 60 | + ) |
54 | 61 | .headline.grey--text(:class='$vuetify.theme.dark ? `text--lighten-2` : `text--darken-3`') {{title}}
|
55 | 62 | .caption.grey--text.text--darken-1 {{description}}
|
56 | 63 | .page-edit-shortcuts(v-if='editShortcutsObj.editMenuBar')
|
|
74 | 81 | v-divider
|
75 | 82 | v-container.pl-5.pt-4(fluid, grid-list-xl)
|
76 | 83 | v-layout(row)
|
77 |
| - v-flex.page-col-sd(lg3, xl2, v-if='$vuetify.breakpoint.lgAndUp') |
| 84 | + v-flex.page-col-sd( |
| 85 | + v-if='tocPosition !== `off` && $vuetify.breakpoint.lgAndUp' |
| 86 | + :order-xs1='tocPosition !== `right`' |
| 87 | + :order-xs2='tocPosition === `right`' |
| 88 | + lg3 |
| 89 | + xl2 |
| 90 | + ) |
78 | 91 | v-card.page-toc-card.mb-5(v-if='tocDecoded.length')
|
79 | 92 | .overline.pa-5.pb-0(:class='$vuetify.theme.dark ? `blue--text text--lighten-2` : `primary--text`') {{$t('common:page.toc')}}
|
80 | 93 | v-list.pb-3(dense, nav, :class='$vuetify.theme.dark ? `darken-3-d3` : ``')
|
|
181 | 194 | v-card.page-shortcuts-card(flat)
|
182 | 195 | v-toolbar(:color='$vuetify.theme.dark ? `grey darken-4-d3` : `grey lighten-3`', flat, dense)
|
183 | 196 | v-spacer
|
184 |
| - v-tooltip(bottom) |
185 |
| - template(v-slot:activator='{ on }') |
186 |
| - v-btn(icon, tile, v-on='on', :aria-label='$t(`common:page.bookmark`)'): v-icon(color='grey') mdi-bookmark |
187 |
| - span {{$t('common:page.bookmark')}} |
| 197 | + //- v-tooltip(bottom) |
| 198 | + //- template(v-slot:activator='{ on }') |
| 199 | + //- v-btn(icon, tile, v-on='on', :aria-label='$t(`common:page.bookmark`)'): v-icon(color='grey') mdi-bookmark |
| 200 | + //- span {{$t('common:page.bookmark')}} |
188 | 201 | v-menu(offset-y, bottom, min-width='300')
|
189 | 202 | template(v-slot:activator='{ on: menu }')
|
190 | 203 | v-tooltip(bottom)
|
|
203 | 216 | span {{$t('common:page.printFormat')}}
|
204 | 217 | v-spacer
|
205 | 218 |
|
206 |
| - v-flex.page-col-content(xs12, lg9, xl10) |
| 219 | + v-flex.page-col-content( |
| 220 | + xs12 |
| 221 | + :lg9='tocPosition !== `off`' |
| 222 | + :xl10='tocPosition !== `off`' |
| 223 | + :order-xs1='tocPosition === `right`' |
| 224 | + :order-xs2='tocPosition !== `right`' |
| 225 | + ) |
207 | 226 | v-tooltip(:right='$vuetify.rtl', :left='!$vuetify.rtl', v-if='hasAnyPagePermissions && editShortcutsObj.editFab')
|
208 | 227 | template(v-slot:activator='{ on: onEditActivator }')
|
209 | 228 | v-speed-dial(
|
@@ -536,6 +555,7 @@ export default {
|
536 | 555 | tocDecoded () {
|
537 | 556 | return JSON.parse(Buffer.from(this.toc, 'base64').toString())
|
538 | 557 | },
|
| 558 | + tocPosition: get('site/tocPosition'), |
539 | 559 | hasAdminPermission: get('page/[email protected]'),
|
540 | 560 | hasWritePagesPermission: get('page/[email protected]'),
|
541 | 561 | hasManagePagesPermission: get('page/[email protected]'),
|
|
0 commit comments