@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.
- package/lib/chat-sidebar.js +1 -1
- package/package.json +1 -1
- package/src/chat-sidebar.tsx +1 -0
- package/style/base.css +11 -2
package/lib/chat-sidebar.js
CHANGED
|
@@ -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
package/src/chat-sidebar.tsx
CHANGED
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
|
-
|
|
359
|
-
|
|
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);
|