aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/OverlayView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-02-28 15:40:51 -0500
committerbobzel <zzzman@gmail.com>2025-02-28 15:40:51 -0500
commit0e7ae057264445ece675e4b5d2380893ea124112 (patch)
tree2ed07331abb4a7be9e131cfe1d86ede2b9a5dee5 /src/client/views/OverlayView.tsx
parent264a11754d31458f823812a85f4ee7b6d8f0596b (diff)
fixed gptpopup disappearing in overlayView. added creation of images based on selection image in gptpopup.
Diffstat (limited to 'src/client/views/OverlayView.tsx')
-rw-r--r--src/client/views/OverlayView.tsx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/client/views/OverlayView.tsx b/src/client/views/OverlayView.tsx
index 20931fc3d..6686a162e 100644
--- a/src/client/views/OverlayView.tsx
+++ b/src/client/views/OverlayView.tsx
@@ -19,6 +19,7 @@ import './OverlayView.scss';
import { DefaultStyleProvider, returnEmptyDocViewList } from './StyleProvider';
import { DocumentView, DocumentViewInternal } from './nodes/DocumentView';
import { SnappingManager } from '../util/SnappingManager';
+import { GPTPopup } from './pdf/GPTPopup/GPTPopup';
export type OverlayDisposer = () => void;
@@ -126,6 +127,16 @@ export class OverlayView extends ObservableReactComponent<object> {
makeObservable(this);
if (!OverlayView.Instance) {
OverlayView.Instance = this;
+ this.addWindow(<GPTPopup />, {
+ x: 400,
+ y: 200,
+ width: 500,
+ height: 400,
+ title: 'GPT', //
+ backgroundColor: 'transparent',
+ isHidden: () => !SnappingManager.ChatVisible,
+ onClick: () => SnappingManager.SetChatVisible(false),
+ });
new ResizeObserver(
action(entries => {
Array.from(entries).forEach(entry => {