Skip to content

Commit

Permalink
chore(ui): adjust the style of symbols in chat sidebar (#3561)
Browse files Browse the repository at this point in the history
* chore(ui): adjust the style of symbols in chat sidebar

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
liangfung and autofix-ci[bot] authored Dec 14, 2024
1 parent 683f630 commit adb7d4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ee/tabby-ui/components/message-markdown/code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,17 @@ export function CodeElement({
className={cn('group/symbol', className, {
symbol: !!lookupSymbol,
'bg-muted leading-5 py-0.5': !!lookupSymbol && !isSymbolNavigable,
'inline-flex items-center gap-1 cursor-pointer hover:bg-muted/50 border':
'space-x-1 cursor-pointer hover:bg-muted/50 border whitespace-nowrap align-middle py-0.5':
isSymbolNavigable
})}
onClick={handleClick}
{...props}
>
{isSymbolNavigable && (
<IconSquareChevronRight className="h-3.5 w-3.5 shrink-0 text-primary" />
<IconSquareChevronRight className="relative -top-px inline-block h-3.5 w-3.5 text-primary" />
)}
<span
className={cn('self-baseline', {
className={cn('whitespace-normal', {
'group-hover/symbol:text-primary': isSymbolNavigable
})}
>
Expand Down

0 comments on commit adb7d4a

Please sign in to comment.