Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/CellPanel/CellPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { DataFrame, stringify } from 'hightable'
import { useEffect, useState } from 'react'
import ContentWrapper from '../ContentWrapper/ContentWrapper.js'
import SlideCloseButton from '../SlideCloseButton/SlideCloseButton.js'
import styles from '../TextView/TextView.module.css'

interface ViewerProps {
df: DataFrame
Expand Down Expand Up @@ -56,6 +57,6 @@ export default function CellPanel({ df, row, col, setProgress, setError, onClose
</>

return <ContentWrapper headers={headers}>
<code className="text">{text}</code>
<code className={styles.textView}>{text}</code>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow, well spotted. Thanks for fixing it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, we still have an issue here:

<pre className="viewer text">{text}</pre>

I'll send a PR

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

</ContentWrapper>
}
2 changes: 1 addition & 1 deletion src/components/TextView/TextView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function TextView({ source, setError }: ViewerProps) {

// Simple text viewer
return <ContentWrapper content={content} headers={headers} isLoading={isLoading}>
{content && <code className={cn(styles.text, customClass?.textView)}>
{content && <code className={cn(styles.textView, customClass?.textView)}>
{content.text}
</code>}
</ContentWrapper>
Expand Down