Skip to content

Commit c64ad86

Browse files
authored
Open the settings from the chat panel (#101)
1 parent 456c91d commit c64ad86

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

src/chat-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const welcomeMessage = (providers: string[]) => `
3939
#### Ask JupyterLite AI
4040
4141
42-
The provider to use can be set in the settings editor, by selecting it from
42+
The provider to use can be set in the <button data-commandLinker-command="settingeditor:open" data-commandLinker-args='{"query": "AI provider"}' href="#">settings editor</button>, by selecting it from
4343
the <img src="${AI_AVATAR}" width="16" height="16"> _AI provider_ settings.
4444
4545
The current providers that are available are _${providers.sort().join('_, _')}_.

style/base.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,21 @@
2525
max-width: 350px;
2626
margin: 0 auto;
2727
}
28+
29+
.jp-chat-welcome-message button[data-commandLinker-command] {
30+
background: var(--jp-layout-color2);
31+
border: 1px solid var(--jp-border-color1);
32+
color: var(--jp-ui-font-color1);
33+
border-radius: var(--jp-border-radius);
34+
cursor: pointer;
35+
font-size: inherit;
36+
font-family: inherit;
37+
padding: 2px 6px;
38+
transition: all 0.2s ease;
39+
}
40+
41+
.jp-chat-welcome-message button[data-commandLinker-command]:hover {
42+
background: var(--jp-layout-color3);
43+
border-color: var(--jp-brand-color1);
44+
color: var(--jp-brand-color1);
45+
}

0 commit comments

Comments
 (0)