vite-plugin-ai-annotator 1.1.11 → 1.1.12

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.
@@ -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, 120) + "px";
7698
+ textareaEl.style.height = Math.min(textareaEl.scrollHeight, 56) + "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" && (e5.metaKey || e5.ctrlKey)) {
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, 120) + "px";
7741
+ target.style.height = Math.min(target.scrollHeight, 56) + "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... (⌘↵ to close)"
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: 52px;
8096
- max-height: 120px;
8097
- padding: 10px 12px;
8095
+ min-height: 36px;
8096
+ max-height: 56px;
8097
+ padding: 8px 12px;
8098
8098
  padding-bottom: 32px;
8099
8099
  border: none;
8100
8100
  background: transparent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-ai-annotator",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "AI-powered element annotator for Vite - Pick elements and get instant AI code modifications",
5
5
  "type": "module",
6
6
  "main": "dist/vite-plugin.js",