vite-plugin-ai-annotator 1.1.11 → 1.1.13
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.
- package/dist/annotator-toolbar.js +7 -7
- package/dist/index.cjs +34 -34
- package/package.json +1 -1
|
@@ -7695,7 +7695,7 @@
|
|
|
7695
7695
|
if (textareaEl) {
|
|
7696
7696
|
textareaEl.focus();
|
|
7697
7697
|
textareaEl.style.height = "auto";
|
|
7698
|
-
textareaEl.style.height = Math.min(textareaEl.scrollHeight,
|
|
7698
|
+
textareaEl.style.height = Math.min(textareaEl.scrollHeight, 37) + "px";
|
|
7699
7699
|
}
|
|
7700
7700
|
this.popoverCleanup = autoUpdate(element, popoverEl, () => {
|
|
7701
7701
|
computePosition2(element, popoverEl, {
|
|
@@ -7716,7 +7716,7 @@
|
|
|
7716
7716
|
});
|
|
7717
7717
|
}
|
|
7718
7718
|
handlePopoverInputKeydown(e5) {
|
|
7719
|
-
if (e5.key === "Enter" &&
|
|
7719
|
+
if (e5.key === "Enter" && !e5.shiftKey) {
|
|
7720
7720
|
e5.preventDefault();
|
|
7721
7721
|
this.hideCommentPopover();
|
|
7722
7722
|
} else if (e5.key === "Escape") {
|
|
@@ -7738,7 +7738,7 @@
|
|
|
7738
7738
|
const comment = target.value;
|
|
7739
7739
|
const element = this.commentPopover.element;
|
|
7740
7740
|
target.style.height = "auto";
|
|
7741
|
-
target.style.height = Math.min(target.scrollHeight,
|
|
7741
|
+
target.style.height = Math.min(target.scrollHeight, 37) + "px";
|
|
7742
7742
|
this.commentPopover = { ...this.commentPopover, comment };
|
|
7743
7743
|
if (element) {
|
|
7744
7744
|
const hasComment = comment.trim().length > 0;
|
|
@@ -7944,7 +7944,7 @@
|
|
|
7944
7944
|
<div class="popover">
|
|
7945
7945
|
<textarea
|
|
7946
7946
|
class="popover-input"
|
|
7947
|
-
placeholder="Add a note... (
|
|
7947
|
+
placeholder="Add a note... (↵ to close)"
|
|
7948
7948
|
.value=${this.commentPopover.comment}
|
|
7949
7949
|
@input=${this.handlePopoverInput}
|
|
7950
7950
|
@keydown=${this.handlePopoverInputKeydown}
|
|
@@ -8092,9 +8092,9 @@
|
|
|
8092
8092
|
|
|
8093
8093
|
.popover-input {
|
|
8094
8094
|
width: 240px;
|
|
8095
|
-
min-height:
|
|
8096
|
-
max-height:
|
|
8097
|
-
padding:
|
|
8095
|
+
min-height: 24px;
|
|
8096
|
+
max-height: 37px;
|
|
8097
|
+
padding: 8px 12px;
|
|
8098
8098
|
padding-bottom: 32px;
|
|
8099
8099
|
border: none;
|
|
8100
8100
|
background: transparent;
|