Skip to content

Commit ef7a270

Browse files
authored
Merge pull request #183 from sourcery-ai/ben/sou-1425-fix-figure-out-how-to-dynamically-load-the-sourcery-logo
feat: use sourcery SVG logo directly rather than loading from the web
2 parents c450955 + ad4b80e commit ef7a270

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

media/chat.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
flex-shrink: 0;
5656
flex-grow: 0;
5757
background: var(--vscode-foreground);
58-
padding: var(--spacing-xs);
58+
padding: var(--spacing-xxs);
5959
border-radius: 100%;
6060
width: 2rem;
6161
height: 2rem;

src/webview/chat.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
//@ts-check
22

3+
// This is the sourcery logo
34
const assistantAvatar = `<div class="sidebar__chat-assistant--chat-avatar-container">
4-
<img src="https://sourcery.ai/favicon-32x32.png?v=63c3364394c84cae06d42bc320066118" alt="Sourcery logo"
5-
class="sidebar__chat-assistant--agent-avatar-image" />
5+
<svg viewBox="0 0 1037.1 1037.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
6+
<polygon fill="#FFFFFF" points="527.2 74.6 100.9 304.3 100.9 513.7 100.9 656.7 100.9 733.3 518.3 963.1 935.7 733.3 935.7 646.5 935.7 513.7 935.7 294.1"/>
7+
<polygon fill="#31313A" points="100.9 656.7 527.2 426.9 935.7 646.5 935.7 733.3 518.3 963.1 100.9 733.3"/>
8+
<polygon fill="#F7931E" fill-opacity="0.8" points="518.3 521 518.3 963.1 100.9 733.3 100.9 304.3"/>
9+
<polygon fill="#F7931E" fill-opacity="0.7" points="935.7 294.1 935.7 733.3 518.3 963.1 518.3 521"/>
10+
<polygon fill="#FBB03B" fill-opacity="0.8" points="100.9 304.3 527.2 74.6 935.7 294.1 935.7 513.7 518.3 743.5 100.9 513.7"/>
11+
</svg>
612
</div>`;
713

814
const chatAvatar = `<div class="sidebar__chat-assistant--chat-avatar-container">

0 commit comments

Comments
 (0)