diff options
| author | bobzel <zzzman@gmail.com> | 2025-02-24 10:59:15 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2025-02-24 10:59:15 -0500 |
| commit | c1159c2587d69e42496c493b508ecb3e8ba0f65c (patch) | |
| tree | 63410b955c08d55cbd4bad5b2bda281cfab6d153 /src/client/views/pdf/GPTPopup | |
| parent | 30ec70722678eba318fb7521a8b2bd642328bf54 (diff) | |
made images able to non-unifrom resize. changed popup to generate descriptions only after it's opened.
Diffstat (limited to 'src/client/views/pdf/GPTPopup')
| -rw-r--r-- | src/client/views/pdf/GPTPopup/GPTPopup.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx index b7eaf2674..2cf39bec4 100644 --- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx +++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx @@ -75,9 +75,9 @@ export class GPTPopup extends ObservableReactComponent<object> { } componentDidMount(): void { reaction( - () => DocumentView.Selected().lastElement(), - selDoc => { - const hasChildDocs = selDoc?.ComponentView?.hasChildDocs; + () => ({ selDoc: DocumentView.Selected().lastElement(), visible: SnappingManager.ChatVisible }), + ({ selDoc, visible }) => { + const hasChildDocs = visible && selDoc?.ComponentView?.hasChildDocs; if (hasChildDocs) { this._textToDocMap.clear(); this.setCollectionContext(selDoc.Document); |
