Compare commits
2 Commits
3bc8b78507
...
db1bbfa1d4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db1bbfa1d4 | ||
|
|
4b2dd9ef5e |
@ -46,6 +46,18 @@
|
|||||||
transition: background 0.15s, opacity 0.15s;
|
transition: background 0.15s, opacity 0.15s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mentionAudioIcon {
|
||||||
|
display: inline-block;
|
||||||
|
margin-right: 3px;
|
||||||
|
font-size: 13px;
|
||||||
|
vertical-align: middle;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mentionAudioIcon::before {
|
||||||
|
content: '\266B'; /* ♫ rendered via CSS, not textContent — avoids polluting prompt text */
|
||||||
|
}
|
||||||
|
|
||||||
.mentionImg {
|
.mentionImg {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
|
|||||||
@ -88,8 +88,8 @@ export function PromptInput() {
|
|||||||
const isAudio = opts.refType === 'audio' || opts.assetType === 'Audio';
|
const isAudio = opts.refType === 'audio' || opts.assetType === 'Audio';
|
||||||
if (isAudio) {
|
if (isAudio) {
|
||||||
const icon = document.createElement('span');
|
const icon = document.createElement('span');
|
||||||
icon.textContent = '\u266B';
|
icon.className = styles.mentionAudioIcon;
|
||||||
icon.style.cssText = 'margin-right:3px;font-size:13px;vertical-align:middle;pointer-events:none';
|
icon.setAttribute('aria-hidden', 'true');
|
||||||
span.appendChild(icon);
|
span.appendChild(icon);
|
||||||
} else if (opts.thumbUrl) {
|
} else if (opts.thumbUrl) {
|
||||||
const img = document.createElement('img');
|
const img = document.createElement('img');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user