Skip to content

Commit

Permalink
Show token being hovered even if highlight is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
lmg-anon committed Jan 13, 2024
1 parent 8006ef0 commit 50a2ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mikupad.html
Original file line number Diff line number Diff line change
Expand Up @@ -2600,7 +2600,7 @@
<span
key=${i}
data-promptchunk=${i}
className=${`${!highlightGenTokens || chunk.type === 'user' ? 'user' : 'machine'} ${isCurrent ? 'current' : ''} ${isNextUndo ? 'erase' : ''}`}>
className=${`${(!highlightGenTokens && !isCurrent) || chunk.type === 'user' ? 'user' : 'machine'} ${isCurrent ? 'current' : ''} ${isNextUndo ? 'erase' : ''}`}>
${(chunk.content === '\n' ? ' \n' : chunk.content) + (i === promptChunks.length - 1 && chunk.content.endsWith('\n') ? '\u00a0' : '')}
</span>`;
})}` : null}
Expand Down

0 comments on commit 50a2ac5

Please sign in to comment.