Skip to content

Commit

Permalink
fix buggy row in message browser
Browse files Browse the repository at this point in the history
Signed-off-by: hemahg <[email protected]>
  • Loading branch information
hemahg committed Jan 9, 2025
1 parent 65034b2 commit 2345817
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ui/components/MessagesTable/MessagesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const columnWidths: Record<Column, BaseCellProps["width"]> = {
timestamp: 15,
timestampUTC: 15,
headers: 20,
value: undefined,
value: 15,
};

const defaultColumns: Column[] = [
Expand Down Expand Up @@ -189,7 +189,7 @@ export function MessagesTable({
<Th
key={key}
width={columnWidths[column]}
modifier={"fitContent"}
modifier={"truncate"}
sort={
column === "timestamp" ||
column === "timestampUTC" ||
Expand Down Expand Up @@ -217,7 +217,11 @@ export function MessagesTable({

function Cell({ children }: PropsWithChildren) {
return (
<Td key={key} dataLabel={columnLabels[column]}>
<Td
key={key}
dataLabel={columnLabels[column]}
modifier="truncate"
>
{children}
</Td>
);
Expand Down

0 comments on commit 2345817

Please sign in to comment.