quasar-ui-danx 0.4.99 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/danx.es.js +17884 -12732
  2. package/dist/danx.es.js.map +1 -1
  3. package/dist/danx.umd.js +192 -118
  4. package/dist/danx.umd.js.map +1 -1
  5. package/dist/style.css +1 -1
  6. package/package.json +11 -2
  7. package/scripts/publish.sh +76 -0
  8. package/src/components/Utility/Code/CodeViewer.vue +31 -14
  9. package/src/components/Utility/Code/CodeViewerCollapsed.vue +2 -0
  10. package/src/components/Utility/Code/CodeViewerFooter.vue +1 -1
  11. package/src/components/Utility/Code/LanguageBadge.vue +278 -5
  12. package/src/components/Utility/Code/MarkdownContent.vue +160 -6
  13. package/src/components/Utility/Code/index.ts +3 -0
  14. package/src/components/Utility/Markdown/ContextMenu.vue +314 -0
  15. package/src/components/Utility/Markdown/HotkeyHelpPopover.vue +259 -0
  16. package/src/components/Utility/Markdown/LineTypeMenu.vue +226 -0
  17. package/src/components/Utility/Markdown/LinkPopover.vue +331 -0
  18. package/src/components/Utility/Markdown/MarkdownEditor.vue +228 -0
  19. package/src/components/Utility/Markdown/MarkdownEditorContent.vue +235 -0
  20. package/src/components/Utility/Markdown/MarkdownEditorFooter.vue +50 -0
  21. package/src/components/Utility/Markdown/TablePopover.vue +420 -0
  22. package/src/components/Utility/Markdown/index.ts +11 -0
  23. package/src/components/Utility/Markdown/types.ts +27 -0
  24. package/src/components/Utility/index.ts +1 -0
  25. package/src/composables/index.ts +1 -0
  26. package/src/composables/markdown/features/useBlockquotes.spec.ts +428 -0
  27. package/src/composables/markdown/features/useBlockquotes.ts +248 -0
  28. package/src/composables/markdown/features/useCodeBlockManager.ts +369 -0
  29. package/src/composables/markdown/features/useCodeBlocks.spec.ts +779 -0
  30. package/src/composables/markdown/features/useCodeBlocks.ts +774 -0
  31. package/src/composables/markdown/features/useContextMenu.ts +444 -0
  32. package/src/composables/markdown/features/useFocusTracking.ts +116 -0
  33. package/src/composables/markdown/features/useHeadings.spec.ts +834 -0
  34. package/src/composables/markdown/features/useHeadings.ts +290 -0
  35. package/src/composables/markdown/features/useInlineFormatting.spec.ts +705 -0
  36. package/src/composables/markdown/features/useInlineFormatting.ts +402 -0
  37. package/src/composables/markdown/features/useLineTypeMenu.ts +285 -0
  38. package/src/composables/markdown/features/useLinks.spec.ts +369 -0
  39. package/src/composables/markdown/features/useLinks.ts +374 -0
  40. package/src/composables/markdown/features/useLists.spec.ts +834 -0
  41. package/src/composables/markdown/features/useLists.ts +747 -0
  42. package/src/composables/markdown/features/usePopoverManager.ts +181 -0
  43. package/src/composables/markdown/features/useTables.spec.ts +1601 -0
  44. package/src/composables/markdown/features/useTables.ts +1107 -0
  45. package/src/composables/markdown/index.ts +16 -0
  46. package/src/composables/markdown/useMarkdownEditor.spec.ts +332 -0
  47. package/src/composables/markdown/useMarkdownEditor.ts +1068 -0
  48. package/src/composables/markdown/useMarkdownHotkeys.spec.ts +791 -0
  49. package/src/composables/markdown/useMarkdownHotkeys.ts +266 -0
  50. package/src/composables/markdown/useMarkdownSelection.ts +219 -0
  51. package/src/composables/markdown/useMarkdownSync.ts +549 -0
  52. package/src/composables/useCodeViewerEditor.spec.ts +655 -0
  53. package/src/composables/useCodeViewerEditor.ts +174 -20
  54. package/src/helpers/formats/index.ts +1 -1
  55. package/src/helpers/formats/markdown/escapeHtml.ts +15 -0
  56. package/src/helpers/formats/markdown/escapeSequences.ts +60 -0
  57. package/src/helpers/formats/markdown/htmlToMarkdown/convertHeadings.ts +41 -0
  58. package/src/helpers/formats/markdown/htmlToMarkdown/index.spec.ts +489 -0
  59. package/src/helpers/formats/markdown/htmlToMarkdown/index.ts +412 -0
  60. package/src/helpers/formats/markdown/index.ts +92 -0
  61. package/src/helpers/formats/markdown/linePatterns.spec.ts +495 -0
  62. package/src/helpers/formats/markdown/linePatterns.ts +172 -0
  63. package/src/helpers/formats/markdown/parseInline.ts +124 -0
  64. package/src/helpers/formats/markdown/render/index.ts +92 -0
  65. package/src/helpers/formats/markdown/render/renderFootnotes.ts +30 -0
  66. package/src/helpers/formats/markdown/render/renderList.ts +69 -0
  67. package/src/helpers/formats/markdown/render/renderTable.ts +38 -0
  68. package/src/helpers/formats/markdown/state.ts +58 -0
  69. package/src/helpers/formats/markdown/tokenize/extractDefinitions.ts +39 -0
  70. package/src/helpers/formats/markdown/tokenize/index.ts +139 -0
  71. package/src/helpers/formats/markdown/tokenize/parseBlockquote.ts +34 -0
  72. package/src/helpers/formats/markdown/tokenize/parseCodeBlock.ts +85 -0
  73. package/src/helpers/formats/markdown/tokenize/parseDefinitionList.ts +88 -0
  74. package/src/helpers/formats/markdown/tokenize/parseHeading.ts +65 -0
  75. package/src/helpers/formats/markdown/tokenize/parseHorizontalRule.ts +22 -0
  76. package/src/helpers/formats/markdown/tokenize/parseList.ts +119 -0
  77. package/src/helpers/formats/markdown/tokenize/parseParagraph.ts +59 -0
  78. package/src/helpers/formats/markdown/tokenize/parseTable.ts +70 -0
  79. package/src/helpers/formats/markdown/tokenize/parseTaskList.ts +47 -0
  80. package/src/helpers/formats/markdown/tokenize/utils.ts +25 -0
  81. package/src/helpers/formats/markdown/types.ts +63 -0
  82. package/src/styles/danx.scss +1 -0
  83. package/src/styles/themes/danx/markdown.scss +96 -0
  84. package/src/test/helpers/editorTestUtils.spec.ts +296 -0
  85. package/src/test/helpers/editorTestUtils.ts +253 -0
  86. package/src/test/helpers/index.ts +1 -0
  87. package/src/test/setup.test.ts +12 -0
  88. package/src/test/setup.ts +12 -0
  89. package/vitest.config.ts +19 -0
  90. package/src/helpers/formats/renderMarkdown.ts +0 -338
@@ -0,0 +1,331 @@
1
+ <template>
2
+ <div
3
+ class="dx-link-popover-overlay"
4
+ @click.self="onCancel"
5
+ @keydown.escape="onCancel"
6
+ >
7
+ <div
8
+ ref="popoverRef"
9
+ class="dx-link-popover"
10
+ :style="popoverStyle"
11
+ >
12
+ <div class="popover-header">
13
+ <h3>{{ isEditing ? 'Edit Link' : 'Insert Link' }}</h3>
14
+ <button
15
+ class="close-btn"
16
+ type="button"
17
+ aria-label="Close"
18
+ @click="onCancel"
19
+ >
20
+ <CloseIcon class="w-4 h-4" />
21
+ </button>
22
+ </div>
23
+
24
+ <div class="popover-content">
25
+ <div class="input-group">
26
+ <label for="link-url">URL</label>
27
+ <input
28
+ id="link-url"
29
+ ref="urlInputRef"
30
+ v-model="urlValue"
31
+ type="text"
32
+ placeholder="https://example.com"
33
+ @keydown.enter.prevent="onSubmit"
34
+ @keydown.escape="onCancel"
35
+ >
36
+ </div>
37
+
38
+ <div
39
+ v-if="!isEditing"
40
+ class="input-group"
41
+ >
42
+ <label for="link-label">Label</label>
43
+ <input
44
+ id="link-label"
45
+ v-model="labelValue"
46
+ type="text"
47
+ :placeholder="labelPlaceholder"
48
+ @keydown.enter.prevent="onSubmit"
49
+ @keydown.escape="onCancel"
50
+ >
51
+ </div>
52
+
53
+ <div
54
+ v-if="isEditing"
55
+ class="edit-hint"
56
+ >
57
+ Enter an empty URL to remove the link.
58
+ </div>
59
+ </div>
60
+
61
+ <div class="popover-footer">
62
+ <button
63
+ type="button"
64
+ class="btn-cancel"
65
+ @click="onCancel"
66
+ >
67
+ Cancel
68
+ </button>
69
+ <button
70
+ type="button"
71
+ class="btn-insert"
72
+ @click="onSubmit"
73
+ >
74
+ {{ isEditing ? 'Update' : 'Insert' }}
75
+ </button>
76
+ </div>
77
+ </div>
78
+ </div>
79
+ </template>
80
+
81
+ <script setup lang="ts">
82
+ import { FaSolidXmark as CloseIcon } from "danx-icon";
83
+ import { computed, nextTick, onMounted, onUnmounted, ref, watch } from "vue";
84
+ import type { PopoverPosition } from "@/composables/markdown";
85
+
86
+ export interface LinkPopoverProps {
87
+ position: PopoverPosition;
88
+ existingUrl?: string;
89
+ selectedText?: string;
90
+ }
91
+
92
+ const props = withDefaults(defineProps<LinkPopoverProps>(), {
93
+ existingUrl: "",
94
+ selectedText: ""
95
+ });
96
+
97
+ const emit = defineEmits<{
98
+ submit: [url: string, label?: string];
99
+ cancel: [];
100
+ }>();
101
+
102
+ // Refs
103
+ const popoverRef = ref<HTMLElement | null>(null);
104
+ const urlInputRef = ref<HTMLInputElement | null>(null);
105
+
106
+ // State
107
+ const urlValue = ref(props.existingUrl || "");
108
+ const labelValue = ref("");
109
+
110
+ // Computed
111
+ const isEditing = computed(() => !!props.existingUrl);
112
+
113
+ const labelPlaceholder = computed(() => {
114
+ if (props.selectedText) {
115
+ return props.selectedText;
116
+ }
117
+ return "Link text (optional)";
118
+ });
119
+
120
+ // Calculate popover position (below cursor by default, above if at bottom of viewport)
121
+ const popoverStyle = computed(() => {
122
+ const popoverHeight = 200; // Approximate height
123
+ const popoverWidth = 320;
124
+ const padding = 10;
125
+
126
+ let top = props.position.y + padding;
127
+ let left = props.position.x - (popoverWidth / 2);
128
+
129
+ // Check if popover would extend below viewport
130
+ if (top + popoverHeight > window.innerHeight - padding) {
131
+ // Position above the cursor
132
+ top = props.position.y - popoverHeight - padding;
133
+ }
134
+
135
+ // Ensure popover doesn't go off left edge
136
+ if (left < padding) {
137
+ left = padding;
138
+ }
139
+
140
+ // Ensure popover doesn't go off right edge
141
+ if (left + popoverWidth > window.innerWidth - padding) {
142
+ left = window.innerWidth - popoverWidth - padding;
143
+ }
144
+
145
+ return {
146
+ top: `${top}px`,
147
+ left: `${left}px`
148
+ };
149
+ });
150
+
151
+ // Methods
152
+ function onSubmit(): void {
153
+ const url = urlValue.value.trim();
154
+ const label = labelValue.value.trim() || undefined;
155
+ emit("submit", url, label);
156
+ }
157
+
158
+ function onCancel(): void {
159
+ emit("cancel");
160
+ }
161
+
162
+ // Handle Escape key at document level
163
+ function handleDocumentKeydown(event: KeyboardEvent): void {
164
+ if (event.key === "Escape") {
165
+ onCancel();
166
+ }
167
+ }
168
+
169
+ // Auto-focus URL input on mount
170
+ onMounted(() => {
171
+ nextTick(() => {
172
+ urlInputRef.value?.focus();
173
+ urlInputRef.value?.select();
174
+ });
175
+
176
+ document.addEventListener("keydown", handleDocumentKeydown);
177
+ });
178
+
179
+ onUnmounted(() => {
180
+ document.removeEventListener("keydown", handleDocumentKeydown);
181
+ });
182
+
183
+ // Watch for existingUrl changes to update the input
184
+ watch(() => props.existingUrl, (newUrl) => {
185
+ urlValue.value = newUrl || "";
186
+ });
187
+ </script>
188
+
189
+ <style lang="scss">
190
+ .dx-link-popover-overlay {
191
+ position: fixed;
192
+ inset: 0;
193
+ z-index: 1000;
194
+ background: rgba(0, 0, 0, 0.3);
195
+ backdrop-filter: blur(1px);
196
+ }
197
+
198
+ .dx-link-popover {
199
+ position: fixed;
200
+ background: #2d2d2d;
201
+ border: 1px solid #404040;
202
+ border-radius: 0.5rem;
203
+ box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
204
+ width: 320px;
205
+ overflow: hidden;
206
+ display: flex;
207
+ flex-direction: column;
208
+
209
+ .popover-header {
210
+ display: flex;
211
+ align-items: center;
212
+ justify-content: space-between;
213
+ padding: 0.875rem 1rem;
214
+ border-bottom: 1px solid #404040;
215
+
216
+ h3 {
217
+ margin: 0;
218
+ font-size: 0.9375rem;
219
+ font-weight: 600;
220
+ color: #f3f4f6;
221
+ }
222
+
223
+ .close-btn {
224
+ display: flex;
225
+ align-items: center;
226
+ justify-content: center;
227
+ width: 1.5rem;
228
+ height: 1.5rem;
229
+ padding: 0;
230
+ background: transparent;
231
+ border: none;
232
+ border-radius: 0.25rem;
233
+ color: #9ca3af;
234
+ cursor: pointer;
235
+ transition: all 0.15s ease;
236
+
237
+ &:hover {
238
+ background: rgba(255, 255, 255, 0.1);
239
+ color: #f3f4f6;
240
+ }
241
+ }
242
+ }
243
+
244
+ .popover-content {
245
+ padding: 1rem;
246
+ display: flex;
247
+ flex-direction: column;
248
+ gap: 0.875rem;
249
+ }
250
+
251
+ .input-group {
252
+ display: flex;
253
+ flex-direction: column;
254
+ gap: 0.375rem;
255
+
256
+ label {
257
+ font-size: 0.75rem;
258
+ font-weight: 500;
259
+ text-transform: uppercase;
260
+ letter-spacing: 0.05em;
261
+ color: #9ca3af;
262
+ }
263
+
264
+ input {
265
+ width: 100%;
266
+ padding: 0.5rem 0.75rem;
267
+ background: #1e1e1e;
268
+ border: 1px solid #404040;
269
+ border-radius: 0.375rem;
270
+ font-size: 0.875rem;
271
+ color: #f3f4f6;
272
+ outline: none;
273
+ transition: border-color 0.15s ease;
274
+
275
+ &::placeholder {
276
+ color: #6b7280;
277
+ }
278
+
279
+ &:focus {
280
+ border-color: #60a5fa;
281
+ }
282
+ }
283
+ }
284
+
285
+ .edit-hint {
286
+ font-size: 0.75rem;
287
+ color: #6b7280;
288
+ font-style: italic;
289
+ }
290
+
291
+ .popover-footer {
292
+ display: flex;
293
+ justify-content: flex-end;
294
+ gap: 0.5rem;
295
+ padding: 0.75rem 1rem;
296
+ border-top: 1px solid #404040;
297
+ background: rgba(0, 0, 0, 0.2);
298
+
299
+ button {
300
+ padding: 0.5rem 1rem;
301
+ font-size: 0.875rem;
302
+ font-weight: 500;
303
+ border-radius: 0.375rem;
304
+ cursor: pointer;
305
+ transition: all 0.15s ease;
306
+ }
307
+
308
+ .btn-cancel {
309
+ background: transparent;
310
+ border: 1px solid #404040;
311
+ color: #d4d4d4;
312
+
313
+ &:hover {
314
+ background: rgba(255, 255, 255, 0.05);
315
+ border-color: #525252;
316
+ }
317
+ }
318
+
319
+ .btn-insert {
320
+ background: #3b82f6;
321
+ border: 1px solid #3b82f6;
322
+ color: #ffffff;
323
+
324
+ &:hover {
325
+ background: #2563eb;
326
+ border-color: #2563eb;
327
+ }
328
+ }
329
+ }
330
+ }
331
+ </style>
@@ -0,0 +1,228 @@
1
+ <template>
2
+ <div class="dx-markdown-editor" :class="{ 'is-readonly': readonly }">
3
+ <div class="dx-markdown-editor-body" @contextmenu="contextMenu.show">
4
+ <!-- Floating line type menu positioned next to current block -->
5
+ <div
6
+ ref="menuContainerRef"
7
+ class="dx-line-type-menu-container"
8
+ :style="lineTypeMenu.menuStyle.value"
9
+ >
10
+ <LineTypeMenu
11
+ :current-type="lineTypeMenu.currentLineType.value"
12
+ @change="lineTypeMenu.onLineTypeChange"
13
+ />
14
+ </div>
15
+
16
+ <MarkdownEditorContent
17
+ ref="contentRef"
18
+ :html="editor.renderedHtml.value"
19
+ :readonly="readonly"
20
+ :placeholder="placeholder"
21
+ @input="editor.onInput"
22
+ @keydown="editor.onKeyDown"
23
+ @blur="editor.onBlur"
24
+ />
25
+ </div>
26
+
27
+ <MarkdownEditorFooter
28
+ :char-count="editor.charCount.value"
29
+ @show-hotkeys="editor.showHotkeyHelp"
30
+ />
31
+
32
+ <HotkeyHelpPopover
33
+ v-if="editor.isShowingHotkeyHelp.value"
34
+ :hotkeys="editor.hotkeyDefinitions.value"
35
+ @close="editor.hideHotkeyHelp"
36
+ />
37
+
38
+ <LinkPopover
39
+ v-if="linkPopover.isVisible.value"
40
+ :position="linkPopover.position.value"
41
+ :existing-url="linkPopover.existingUrl.value"
42
+ :selected-text="linkPopover.selectedText.value"
43
+ @submit="linkPopover.submit"
44
+ @cancel="linkPopover.cancel"
45
+ />
46
+
47
+ <TablePopover
48
+ v-if="tablePopover.isVisible.value"
49
+ :position="tablePopover.position.value"
50
+ @submit="tablePopover.submit"
51
+ @cancel="tablePopover.cancel"
52
+ />
53
+
54
+ <ContextMenu
55
+ v-if="contextMenu.isVisible.value"
56
+ :position="contextMenu.position.value"
57
+ :items="contextMenu.items.value"
58
+ @close="contextMenu.hide"
59
+ />
60
+ </div>
61
+ </template>
62
+
63
+ <script setup lang="ts">
64
+ import { computed, onMounted, onUnmounted, ref, watch } from "vue";
65
+ import { useContextMenu } from "../../../composables/markdown/features/useContextMenu";
66
+ import { useFocusTracking } from "../../../composables/markdown/features/useFocusTracking";
67
+ import { useLineTypeMenu } from "../../../composables/markdown/features/useLineTypeMenu";
68
+ import { useLinkPopover, useTablePopover } from "../../../composables/markdown/features/usePopoverManager";
69
+ import { useMarkdownEditor } from "../../../composables/markdown/useMarkdownEditor";
70
+ import ContextMenu from "./ContextMenu.vue";
71
+ import HotkeyHelpPopover from "./HotkeyHelpPopover.vue";
72
+ import LineTypeMenu from "./LineTypeMenu.vue";
73
+ import LinkPopover from "./LinkPopover.vue";
74
+ import MarkdownEditorContent from "./MarkdownEditorContent.vue";
75
+ import MarkdownEditorFooter from "./MarkdownEditorFooter.vue";
76
+ import TablePopover from "./TablePopover.vue";
77
+
78
+ export interface MarkdownEditorProps {
79
+ modelValue?: string;
80
+ placeholder?: string;
81
+ readonly?: boolean;
82
+ minHeight?: string;
83
+ maxHeight?: string;
84
+ }
85
+
86
+ const props = withDefaults(defineProps<MarkdownEditorProps>(), {
87
+ modelValue: "",
88
+ placeholder: "Start typing...",
89
+ readonly: false,
90
+ minHeight: "100px",
91
+ maxHeight: "none"
92
+ });
93
+
94
+ const emit = defineEmits<{
95
+ "update:modelValue": [value: string];
96
+ }>();
97
+
98
+ // Reference to the content component
99
+ const contentRef = ref<InstanceType<typeof MarkdownEditorContent> | null>(null);
100
+
101
+ // Reference to the menu container for focus handling
102
+ const menuContainerRef = ref<HTMLElement | null>(null);
103
+
104
+ // Get the actual HTMLElement from the content component
105
+ const contentElementRef = computed(() => contentRef.value?.containerRef || null);
106
+
107
+ // Initialize popover managers
108
+ const linkPopover = useLinkPopover();
109
+ const tablePopover = useTablePopover();
110
+
111
+ // Initialize the markdown editor composable
112
+ const editor = useMarkdownEditor({
113
+ contentRef: contentElementRef,
114
+ initialValue: props.modelValue,
115
+ onEmitValue: (markdown: string) => {
116
+ emit("update:modelValue", markdown);
117
+ },
118
+ onShowLinkPopover: linkPopover.show,
119
+ onShowTablePopover: tablePopover.show
120
+ });
121
+
122
+ // Initialize focus tracking
123
+ const focusTracking = useFocusTracking({
124
+ contentRef: contentElementRef,
125
+ menuContainerRef,
126
+ onSelectionChange: () => lineTypeMenu.updatePositionAndState()
127
+ });
128
+
129
+ // Initialize line type menu
130
+ const lineTypeMenu = useLineTypeMenu({
131
+ contentRef: contentElementRef,
132
+ editor,
133
+ isEditorFocused: focusTracking.isEditorFocused
134
+ });
135
+
136
+ // Initialize context menu
137
+ const contextMenu = useContextMenu({
138
+ editor,
139
+ readonly: computed(() => props.readonly)
140
+ });
141
+
142
+ // Setup line type menu listeners on mount
143
+ onMounted(() => {
144
+ lineTypeMenu.setupListeners();
145
+ });
146
+
147
+ // Cleanup line type menu listeners on unmount
148
+ onUnmounted(() => {
149
+ lineTypeMenu.cleanupListeners();
150
+ });
151
+
152
+ // Watch for external value changes
153
+ watch(
154
+ () => props.modelValue,
155
+ (newValue) => {
156
+ // Skip if this change originated from the editor itself (internal update)
157
+ // This prevents cursor jumping when the watch triggers after typing
158
+ if (editor.isInternalUpdate.value) {
159
+ editor.isInternalUpdate.value = false;
160
+ return;
161
+ }
162
+
163
+ // Only update if the value is different from current
164
+ if (newValue !== undefined) {
165
+ editor.setMarkdown(newValue);
166
+ }
167
+ }
168
+ );
169
+
170
+ // NOTE: Content is already initialized in useMarkdownEditor with initialValue.
171
+ // The v-html binding renders it, and the MutationObserver mounts CodeViewers.
172
+ // Calling setMarkdown again here would replace the DOM and cause race conditions
173
+ // with CodeViewer mounting. Only call setMarkdown for external value changes.
174
+
175
+ // Expose the editor for parent components that may need access
176
+ defineExpose({
177
+ editor,
178
+ setMarkdown: editor.setMarkdown
179
+ });
180
+ </script>
181
+
182
+ <style lang="scss">
183
+ .dx-markdown-editor {
184
+ display: flex;
185
+ flex-direction: column;
186
+ width: 100%;
187
+ border-radius: 0.375rem;
188
+ overflow: hidden;
189
+
190
+ &.is-readonly {
191
+ .dx-markdown-editor-content {
192
+ cursor: default;
193
+ }
194
+
195
+ .dx-line-type-menu-container {
196
+ display: none;
197
+ }
198
+ }
199
+
200
+ // Body container with floating menu and content side by side
201
+ .dx-markdown-editor-body {
202
+ display: flex;
203
+ position: relative;
204
+ flex: 1;
205
+ overflow: visible;
206
+ }
207
+
208
+ // Floating line type menu container - positioned outside editor bounds
209
+ .dx-line-type-menu-container {
210
+ position: absolute;
211
+ left: -1.75rem;
212
+ z-index: 10;
213
+ width: 1.75rem;
214
+ display: flex;
215
+ align-items: flex-start;
216
+ justify-content: center;
217
+ padding-top: 0.25rem;
218
+ transition: top 0.1s ease-out, opacity 0.15s ease;
219
+ }
220
+
221
+ // Apply min/max height to content area (no left margin needed - menu is outside)
222
+ .dx-markdown-editor-content {
223
+ flex: 1;
224
+ min-height: v-bind(minHeight);
225
+ max-height: v-bind(maxHeight);
226
+ }
227
+ }
228
+ </style>