Skip to content

Commit

Permalink
FIX: Layout Preserving of Indexed Data Modal (#529)
Browse files Browse the repository at this point in the history
* Fixed issue in preserving the layout

* Fixed eslint issue

---------

Co-authored-by: Gayathri <[email protected]>
  • Loading branch information
tahierhussain and gaya3-zipstack authored Jul 29, 2024
1 parent 40b8af0 commit e913dd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
}

.text-viewer-layout {
height: 100%;
padding: 0px 12px;
flex: 1;
overflow-y: auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Modal } from "antd";
import "./PromptCard.css";
import { uniqueId } from "lodash";

import { TextViewerPre } from "../text-viewer-pre/TextViewerPre";

function OutputForIndex({ chunkData, setIsIndexOpen, isIndexOpen }) {
const handleClose = () => {
setIsIndexOpen(false);
Expand Down Expand Up @@ -36,7 +38,9 @@ function OutputForIndex({ chunkData, setIsIndexOpen, isIndexOpen }) {
footer={null}
width={1000}
>
<div className="index-output-tab">{renderContent(lines)}</div>
<div className="index-output-tab">
<TextViewerPre text={renderContent(lines)} />
</div>
</Modal>
);
}
Expand Down

0 comments on commit e913dd7

Please sign in to comment.