Skip to content

Commit 1cacd4a

Browse files
Reverted to edit 92595471-e0eb-4f82-8df6-cce9b1afc166: "Add external link icons to messages
Implement CSS styles to display external link icons next to links in messages. Use a GitHub icon for GitHub links and a custom "W" icon for Wikipedia links to clearly indicate external sources. No modifications to JavaScript or TypeScript files were made. [skip gpt_engineer]"
1 parent 1a25474 commit 1cacd4a

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/index.css

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,11 @@
8989

9090
/* GitHub icon */
9191
.chat-message a[href*="github.com"]::after {
92-
content: "";
93-
position: absolute;
94-
right: 0;
95-
width: 1em;
96-
height: 1em;
97-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='20' x='2' y='2' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
98-
background-size: contain;
99-
background-repeat: no-repeat;
100-
@apply text-muted-foreground;
92+
content: "G";
93+
font-family: monospace;
94+
font-weight: bold;
95+
font-size: 0.8em;
96+
top: 0;
10197
}
10298

10399
/* Wikipedia icon */

0 commit comments

Comments
 (0)