diff options
| author | bobzel <zzzman@gmail.com> | 2023-07-28 11:08:12 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-07-28 11:08:12 -0400 |
| commit | 022540e2833025409fd8017c5c9ecb3bfc93867b (patch) | |
| tree | 930a15f1583481c744a3797276373c8e1c89b7b3 /src/client/views/pdf/AnchorMenu.tsx | |
| parent | c3ad219894475b71fa66b3b5749ba3a1da503ede (diff) | |
minor formatting. url field doesn't need to test for https -- covered by testing for http
Diffstat (limited to 'src/client/views/pdf/AnchorMenu.tsx')
| -rw-r--r-- | src/client/views/pdf/AnchorMenu.tsx | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/client/views/pdf/AnchorMenu.tsx b/src/client/views/pdf/AnchorMenu.tsx index 94bbc924a..b877cc36a 100644 --- a/src/client/views/pdf/AnchorMenu.tsx +++ b/src/client/views/pdf/AnchorMenu.tsx @@ -343,8 +343,21 @@ export class AnchorMenu extends AntimodeMenu<AntimodeMenuProps> { color={StrCast(Doc.UserDoc().userColor)} /> )} - {this.canEdit() && <IconButton tooltip={'AI edit suggestions'} onPointerDown={this.gptEdit} icon={<FontAwesomeIcon icon="pencil-alt" />} color={StrCast(Doc.UserDoc().userColor)} />} - <Popup tooltip="Find document to link to selected text" type={Type.PRIM} icon={<FontAwesomeIcon icon={'search'} />} popup={<LinkPopup key="popup" linkCreateAnchor={this.onMakeAnchor} />} color={StrCast(Doc.UserDoc().userColor)} /> + {this.canEdit() && ( + <IconButton + tooltip="AI edit suggestions" // + onPointerDown={this.gptEdit} + icon={<FontAwesomeIcon icon="pencil-alt" />} + color={StrCast(Doc.UserDoc().userColor)} + /> + )} + <Popup + tooltip="Find document to link to selected text" // + type={Type.PRIM} + icon={<FontAwesomeIcon icon={'search'} />} + popup={<LinkPopup key="popup" linkCreateAnchor={this.onMakeAnchor} />} + color={StrCast(Doc.UserDoc().userColor)} + /> {AnchorMenu.Instance.StartCropDrag === unimplementedFunction ? null : ( <IconButton tooltip="Click/Drag to create cropped image" // |
