Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hyperparam",
"version": "0.2.33",
"version": "0.2.34",
"description": "Hyperparam CLI",
"author": "Hyperparam",
"homepage": "https://hyperparam.app",
Expand Down
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