Repository navigation
Report: Rework test details table layout - #5777
Conversation
There was a problem hiding this comment.
🔵 Needs a closer look
The current implementation includes a CSS declaration that is invalid and a tags width measurement approach that can fail when max-content is unsupported, causing incorrect layout behavior.
Review details
Suppressed comments (2)
Previously missed (1) — in code that hasn't changed since the last review.
src/robot/htmldata/rebot/report.css:278
word-wrapdoes not support the valueanywhere, so this declaration is invalid and will be ignored. Useoverflow-wrap: anywhere(and optionally keepword-wrap: break-wordas a legacy alias) to ensure long tag values can wrap.
src/robot/htmldata/rebot/report.html:461
capTagsColumnWidth()relies on settingwidth: max-contentand then readingoffsetWidthto compute the natural width. If the browser ignoresmax-content,offsetWidthstays constrained by the cell and the computed cap will be wrong. MeasuringscrollWidthafter forcingflex-wrap: nowrapavoids depending onmax-contentsupport.
cells.css({'flex-wrap': 'nowrap', 'width': 'max-content'});
cells.each(function () {
natural = Math.max(natural, this.offsetWidth);
});
cells.css({'flex-wrap': '', 'width': ''});
- Files reviewed: 2/2 changed files
- Comments generated: 0 new
- Review effort level: Lite
28ca17e to
ab4ac41
Compare
ab4ac41 to
39f5306
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The PR description promises multiple layout/interaction features (tag pills, resizable columns, shrinking empty columns) that are not present in the actual diff, so scope/expectations should be corrected or missing functionality added.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Lite
There was a problem hiding this comment.
🟡 Changes recommended
The new CSS sets overflow-x: hidden for the metadata column, which can clip horizontally overflowing metadata content without a way to scroll.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Suppressed comments (1)
src/robot/htmldata/rebot/report.html:845
- PR description mentions tags rendered as wrapping pills, resizable columns, and width constraints, but the only changes here are metadata rendering/style updates. Either update the PR description to match the actual scope, or include the missing implementation changes in this PR so reviewers can validate them.
<td class="details-col-doc"><div class="doc details-limited">{{html doc()}}</div></td>
<td class="details-col-metadata"><div class="details-limited">{{if metadata.length}}<table class="metadata">{{each metadata}}<tr><th>{{html $value[0]}}:</th><td class="doc">{{html $value[1]}}</td></tr>{{/each}}</table>{{/if}}</div></td>
<td class="details-col-tags"><div>{{html tags.join(', ')}}</div></td>
<td class="details-col-status"><div><span class="label ${status.toLowerCase()}">${status}</span></div></td>
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Lite
Uh oh!
There was an error while loading. Please reload this page.