Skip to content

Commit 25ba25a

Browse files
committed
chore: fix layout indentation and add overflow prevention to table menu
1 parent 6ff741a commit 25ba25a

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

frontend/src/components/tiptap-extensions/WikiBubbleMenu.vue

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,28 @@
132132
v-if="editor"
133133
:editor="editor"
134134
:should-show="shouldShowTableMenu"
135-
:tippy-options="{ duration: 100, zIndex: 50, offset: [0, 10] }"
135+
:tippy-options="{
136+
duration: 100,
137+
zIndex: 50,
138+
offset: [0, 10],
139+
popperOptions: {
140+
modifiers: [
141+
{
142+
name: 'preventOverflow',
143+
options: {
144+
boundary: 'viewport',
145+
padding: 8,
146+
},
147+
},
148+
{
149+
name: 'flip',
150+
options: {
151+
fallbackPlacements: ['top', 'bottom'],
152+
},
153+
},
154+
],
155+
},
156+
}"
136157
class="wiki-bubble-menu"
137158
>
138159
<div class="bubble-menu-buttons">

wiki/templates/wiki/layout.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353
<!-- Main content + TOC area -->
5454
{% block content %}
5555
<main class="flex-1 min-w-0 px-4 py-6 lg:px-6 lg:py-8 xl:px-12">
56-
<div class="w-full">
57-
{% block body %}{% endblock %}
58-
</div>
59-
</main>
56+
<div class="w-full">
57+
{% block body %}{% endblock %}
58+
</div>
59+
</main>
6060

6161
{% endblock %}
6262
</div>

0 commit comments

Comments
 (0)