@xleddyl/443-components-vue 0.16.23 → 0.16.24

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.
@@ -111,7 +111,7 @@
111
111
  :readonly="!editable"
112
112
  :aria-label="text.source"
113
113
  :aria-invalid="sourceInvalid ? 'true' : void 0"
114
- :style="{ minHeight, maxHeight }"
114
+ :style="{ minHeight, maxHeight, height: sourceHeight }"
115
115
  spellcheck="false"
116
116
  @input="onSourceInput($event.target.value)"
117
117
  />
@@ -188,6 +188,7 @@ const linkType = ref("url");
188
188
  const linkNeedsText = ref(false);
189
189
  const sourceRef = useTemplateRef("sourceRef");
190
190
  const sourceMode = ref(false);
191
+ const sourceHeight = ref();
191
192
  const sourceText = ref("");
192
193
  const sourceInvalid = ref(false);
193
194
  const linkPrefixes = { url: "", email: "mailto:", phone: "tel:" };
@@ -492,6 +493,8 @@ async function toggleSource() {
492
493
  return;
493
494
  }
494
495
  linkOpen.value = false;
496
+ const rendered = editor.value?.view.dom.getBoundingClientRect().height;
497
+ sourceHeight.value = rendered ? `${Math.round(rendered)}px` : void 0;
495
498
  sourceText.value = sourceOf(model.value);
496
499
  sourceInvalid.value = false;
497
500
  sourceMode.value = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xleddyl/443-components-vue",
3
- "version": "0.16.23",
3
+ "version": "0.16.24",
4
4
  "description": "Compact, scoped dashboard components for Vue and Nuxt",
5
5
  "license": "MIT",
6
6
  "author": "Edoardo Alberti (https://github.com/xleddyl)",