feat: chat icons — image fallbacks, external links, smaller inline size
- Support image file fallback when no sprite index exists (Immich Photo Manager, Cmux Resurrect now show their logos) - Render external links [text](https://...) as clickable links (fixes Third Party Contributions raw markdown) - Smaller inline icons (20px) to fit chat bubble aesthetic - Separate icon-chat CSS class for chat-specific sizing
This commit is contained in:
@@ -346,13 +346,37 @@
|
||||
Navigation Links in Chat Messages
|
||||
========================================================================== */
|
||||
|
||||
/* Inline sprite icons in chat messages */
|
||||
.chat-msg .icon-sprite {
|
||||
/* Inline icons in chat messages — compact size to fit bubbles */
|
||||
.chat-msg .icon-sprite.icon-chat {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background-size: auto 20px;
|
||||
vertical-align: middle;
|
||||
margin-right: 2px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.chat-msg .icon-chat.icon-company {
|
||||
background-position-x: calc(var(--icon-index, 0) * -20px);
|
||||
}
|
||||
|
||||
.chat-msg .icon-chat.icon-project {
|
||||
background-position-x: calc(var(--icon-index, 0) * -20px);
|
||||
}
|
||||
|
||||
.chat-msg .icon-chat.icon-course {
|
||||
background-position-x: calc(var(--icon-index, 0) * -20px);
|
||||
}
|
||||
|
||||
.chat-inline-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
vertical-align: middle;
|
||||
margin-right: 2px;
|
||||
border-radius: 3px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.chat-nav-link {
|
||||
color: var(--accent-green, #27ae60);
|
||||
text-decoration: none;
|
||||
|
||||
Reference in New Issue
Block a user