Skip to content

Commit d6d88ed

Browse files
committed
fix: edit buttons header alignment when toc sidebar is on the right
1 parent c91ff2d commit d6d88ed

File tree

1 file changed

+15
-4
lines changed
  • client/themes/default/components

1 file changed

+15
-4
lines changed

client/themes/default/components/page.vue

+15-4
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,13 @@
5858
style='margin-top: auto; margin-bottom: auto;'
5959
:class='$vuetify.rtl ? `pr-4` : `pl-4`'
6060
)
61-
.headline.grey--text(:class='$vuetify.theme.dark ? `text--lighten-2` : `text--darken-3`') {{title}}
62-
.caption.grey--text.text--darken-1 {{description}}
63-
.page-edit-shortcuts(v-if='editShortcutsObj.editMenuBar')
61+
.page-header-headings
62+
.headline.grey--text(:class='$vuetify.theme.dark ? `text--lighten-2` : `text--darken-3`') {{title}}
63+
.caption.grey--text.text--darken-1 {{description}}
64+
.page-edit-shortcuts(
65+
v-if='editShortcutsObj.editMenuBar'
66+
:class='tocPosition === `right` ? `is-right` : ``'
67+
)
6468
v-btn(
6569
v-if='editShortcutsObj.editMenuBtn'
6670
@click='pageEdit'
@@ -742,9 +746,16 @@ export default {
742746
position: relative;
743747
}
744748
749+
.page-header-headings {
750+
min-height: 52px;
751+
display: flex;
752+
justify-content: center;
753+
flex-direction: column;
754+
}
755+
745756
.page-edit-shortcuts {
746757
position: absolute;
747-
bottom: -43px;
758+
bottom: -33px;
748759
right: 10px;
749760
750761
.v-btn {

0 commit comments

Comments
 (0)