From e82271a4db1600508dd077bd61afb00179dce573 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Mon, 3 Apr 2023 10:31:58 +0200 Subject: [PATCH] change(ui) - errors show message --- .../shared/DevTools/ConsoleRow/ConsoleRow.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/frontend/app/components/shared/DevTools/ConsoleRow/ConsoleRow.tsx b/frontend/app/components/shared/DevTools/ConsoleRow/ConsoleRow.tsx index fc818b550..e035e92f6 100644 --- a/frontend/app/components/shared/DevTools/ConsoleRow/ConsoleRow.tsx +++ b/frontend/app/components/shared/DevTools/ConsoleRow/ConsoleRow.tsx @@ -1,6 +1,6 @@ import React, { useState } from 'react'; import cn from 'classnames'; -import { Icon } from 'UI'; +import { Icon, TextEllipsis } from 'UI'; import JumpButton from 'Shared/DevTools/JumpButton'; interface Props { @@ -17,7 +17,6 @@ function ConsoleRow(props: Props) { const [expanded, setExpanded] = useState(false); const lines = log.value?.split('\n').filter((l: any) => !!l) || []; const canExpand = lines.length > 1; - const clickable = canExpand || !!log.errorId; const toggleExpand = () => { @@ -34,7 +33,6 @@ function ConsoleRow(props: Props) { warn: log.isYellow, error: log.isRed, 'cursor-pointer': clickable, - 'cursor-pointer underline decoration-dotted decoration-gray-200': !!log.errorId, } )} onClick={clickable ? () => (!!log.errorId ? props.onClick() : toggleExpand()) : undefined} @@ -43,11 +41,14 @@ function ConsoleRow(props: Props) {
-
- {canExpand && ( - - )} - {renderWithNL(lines.pop())} +
+
+ {canExpand && ( + + )} + {renderWithNL(lines.pop())} +
+ {log.errorId && }
{canExpand && expanded &&