@notebook-intelligence/notebook-intelligence 4.3.0 → 4.3.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.
@@ -1338,7 +1338,7 @@ function SidebarComponent(props) {
1338
1338
  msg.from === 'copilot' &&
1339
1339
  copilotRequestInProgress }))),
1340
1340
  React.createElement("div", { ref: messagesEndRef })))),
1341
- chatEnabled && (React.createElement("div", { className: `sidebar-user-input ${copilotRequestInProgress ? 'generating' : ''}` },
1341
+ chatEnabled && (React.createElement("div", { id: "sidebar-user-input", className: `sidebar-user-input ${copilotRequestInProgress ? 'generating' : ''}` },
1342
1342
  React.createElement("textarea", { ref: promptInputRef, rows: 3, onChange: onPromptChange, onKeyDown: onPromptKeyDown, placeholder: "Ask Notebook Intelligence...", spellCheck: false, value: prompt }),
1343
1343
  (activeDocumentInfo === null || activeDocumentInfo === void 0 ? void 0 : activeDocumentInfo.filename) && (React.createElement("div", { className: "user-input-context-row" },
1344
1344
  React.createElement("div", { className: `user-input-context user-input-context-active-file ${contextOn ? 'on' : 'off'}` },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notebook-intelligence/notebook-intelligence",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "AI coding assistant for JupyterLab",
5
5
  "keywords": [
6
6
  "AI",
@@ -2007,6 +2007,7 @@ function SidebarComponent(props: any) {
2007
2007
  ))}
2008
2008
  {chatEnabled && (
2009
2009
  <div
2010
+ id="sidebar-user-input"
2010
2011
  className={`sidebar-user-input ${copilotRequestInProgress ? 'generating' : ''}`}
2011
2012
  >
2012
2013
  <textarea
package/style/base.css CHANGED
@@ -29,6 +29,12 @@
29
29
  padding: 5px;
30
30
  }
31
31
 
32
+ #sidebar-user-input {
33
+ /* stylelint-disable */
34
+ anchor-name: --sidebaruserinput;
35
+ /* stylelint-enable */
36
+ }
37
+
32
38
  .sidebar-user-input {
33
39
  height: auto;
34
40
  padding: 5px;
@@ -355,8 +361,11 @@ pre:has(.code-block-header) {
355
361
  border: 1px solid var(--jp-border-color1);
356
362
  flex-direction: column;
357
363
  position: absolute;
358
- bottom: 80px;
359
- left: 4px;
364
+ /* stylelint-disable */
365
+ position-anchor: --sidebaruserinput;
366
+ position-area: top;
367
+ /* stylelint-enable */
368
+ width: calc(100% - 16px);
360
369
  gap: 2px;
361
370
  /* stylelint-disable */
362
371
  max-height: min(calc(100% - 120px), 400px);