fix(logs): wrap long values in the source details json view (#15694)

Co-authored-by: Ashish Kolhe <35160958+oasisk@users.noreply.github.com>
This commit is contained in:
Sai Nikhil
2026-10-26 19:30:01 +00:00
committed by GitHub
co-authored by Ashish Kolhe
parent d17b828325
commit 7951405efb
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -252,6 +252,11 @@ describe("JsonPreview Component", () => {
expect(wrapper.exists()).toBe(true);
});
it("should let a field's value shrink so long values wrap inside the row", () => {
const valueCell = wrapper.find('[data-test="log-expand-detail-key-field1"]');
expect(valueCell.classes()).toContain("min-w-0");
});
it("should have correct component name", () => {
expect(wrapper.vm.$options.name).toBe("JsonPreview");
});
+1 -1
View File
@@ -172,7 +172,7 @@
</ODropdownItem>
</ODropdown>
<span class="ps-1" :data-test="`log-expand-detail-key-${key}`">
<span class="min-w-0 ps-1" :data-test="`log-expand-detail-key-${key}`">
<span class="log-key">{{ key }}</span
><span class="log-separator">: </span
><span