mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-05 08:09:22 +00:00
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:
co-authored by
Ashish Kolhe
parent
d17b828325
commit
7951405efb
@@ -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");
|
||||
});
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user