Fix results overflow and add debug logging for reference badges

CSS Changes:
- Added max-width and overflow handling to .badge-row
- Added word-wrap and overflow protection to .item
- Added overflow-x: hidden to .window-body
- Badges now use white-space: nowrap to prevent text wrapping
- Item titles now break words properly with word-break

JavaScript Changes:
- Added console.log debugging for reference counts
- Logs show whether fields are present and their values
- Helps diagnose why badges aren't appearing

This should fix the overflow issue and help debug badge visibility.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-05 11:18:17 -05:00
parent 595b19f7c7
commit d8d2c5e34c
2 changed files with 30 additions and 0 deletions

View File

@@ -168,18 +168,34 @@ body.dimmed {
border-bottom: 1px solid ButtonShadow;
padding: 12px 0;
margin-bottom: 8px;
max-width: 100%;
overflow: hidden;
word-wrap: break-word;
}
#results .item:last-child {
border-bottom: none;
}
#results .item strong {
word-break: break-word;
max-width: 100%;
display: inline-block;
}
.window-body {
max-width: 100%;
overflow-x: hidden;
}
/* Badges */
.badge-row {
margin-top: 6px;
display: flex;
gap: 4px;
flex-wrap: wrap;
max-width: 100%;
overflow: hidden;
}
.badge {
@@ -189,6 +205,8 @@ body.dimmed {
padding: 2px 6px;
font-size: 10px;
font-weight: bold;
white-space: nowrap;
word-break: keep-all;
}
/* Transcript and highlights */