Hover related fixes

This commit is contained in:
Shaurya Sharma 2025-04-03 01:34:52 +05:30
parent 6add2b622a
commit 2daeb10a23

View file

@ -6,7 +6,6 @@ import useTextColor from '../DataTypes/_hooks/useTextColor';
import useTableStore from '../../_stores/tableStore';
import { getMaxHeight } from '../../_utils/helper';
import { shallow } from 'zustand/shallow';
import remarkBreaks from 'remark-breaks';
import DOMPurify from 'dompurify';
export const MarkdownColumn = ({
@ -65,7 +64,7 @@ export const MarkdownColumn = ({
whiteSpace: 'pre-wrap',
}}
>
<ReactMarkdown remarkPlugins={[remarkBreaks]}>{getCellValue(cellValue)}</ReactMarkdown>
<ReactMarkdown>{getCellValue(cellValue)}</ReactMarkdown>
</span>
</div>
);
@ -112,11 +111,7 @@ export const MarkdownColumn = ({
e.stopPropagation();
}}
>
{isEditing ? (
cellValue
) : (
<ReactMarkdown remarkPlugins={[remarkBreaks]}>{getCellValue(cellValue)}</ReactMarkdown>
)}
<div>{isEditing ? cellValue : <ReactMarkdown>{getCellValue(cellValue)}</ReactMarkdown>}</div>
</div>
);
};
@ -155,7 +150,7 @@ export const MarkdownColumn = ({
whiteSpace: 'pre-wrap',
}}
>
<ReactMarkdown remarkPlugins={[remarkBreaks]}>{getCellValue(cellValue)}</ReactMarkdown>
<ReactMarkdown>{getCellValue(cellValue)}</ReactMarkdown>
</span>
</div>
) : (