Skip to content

Commit 1457c00

Browse files
committed
Fix(viewer): Allow to peak under 'assistant #num msg' tags
1 parent d81b9cf commit 1457c00

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.cursor/rules/viewer.mdc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,5 @@ First show the following properties from the `info` section
125125

126126
Then, show all the messages. Each message should be its own block together with the role.
127127
Because the content can be long, make sure to have a foldout for the content.
128+
129+
**Message Role Badges**: Each message displays a small role badge (e.g., "User #1", "Assistant #2") in the top-right corner. These badges automatically hide on hover over the message block to improve readability and allow users to see text that might be obscured by the badge.

codeclash/viewer/static/css/style.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,12 @@ details summary {
413413
border-radius: 0.25rem;
414414
border: 1px solid var(--border-color);
415415
z-index: 1;
416+
transition: opacity 0.3s ease;
417+
}
418+
419+
/* Autohide message role badges on hover to improve readability */
420+
.message-block:hover .message-role-badge {
421+
opacity: 0;
416422
}
417423

418424
.message-content {

0 commit comments

Comments
 (0)