From 2eb42fd6299532d47ba16edb983e85fe49bb582f Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 28 Jul 2023 10:25:41 -0400 Subject: minor cleanup --- src/client/views/MainView.tsx | 3 -- src/client/views/pdf/AnchorMenu.tsx | 59 ++++++++++++++++++++++++++++++------- 2 files changed, 48 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx index 44eeb253c..af8639d35 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -49,7 +49,6 @@ import { InkTranscription } from './InkTranscription'; import { LightboxView } from './LightboxView'; import { LinkMenu } from './linking/LinkMenu'; import './MainView.scss'; -import { NewLightboxView } from './newlightbox/NewLightboxView'; import { AudioBox } from './nodes/AudioBox'; import { DocumentLinksButton } from './nodes/DocumentLinksButton'; import { DocumentView, DocumentViewInternal, OpenWhere, OpenWhereMod } from './nodes/DocumentView'; @@ -66,8 +65,6 @@ import { PreviewCursor } from './PreviewCursor'; import { PropertiesView } from './PropertiesView'; import { DashboardStyleProvider, DefaultStyleProvider } from './StyleProvider'; import { TopBar } from './topbar/TopBar'; -import { ThemeProvider } from '@mui/material'; -import { theme } from '../theme'; const _global = (window /* browser */ || global) /* node */ as any; @observer diff --git a/src/client/views/pdf/AnchorMenu.tsx b/src/client/views/pdf/AnchorMenu.tsx index 17a3d0a03..94bbc924a 100644 --- a/src/client/views/pdf/AnchorMenu.tsx +++ b/src/client/views/pdf/AnchorMenu.tsx @@ -309,14 +309,20 @@ export class AnchorMenu extends AntimodeMenu { this.Status === 'marquee' ? ( <> {this.highlighter} - } color={StrCast(Doc.UserDoc().userColor)} /> + } + color={StrCast(Doc.UserDoc().userColor)} + /> {/* GPT Summarize icon only shows up when text is highlighted, not on marquee selection*/} {AnchorMenu.Instance.StartCropDrag === unimplementedFunction && this.canSummarize() && ( - Summarize with AI}> - - + } + color={StrCast(Doc.UserDoc().userColor)} + /> )} { mode={this.GPTMode} /> {AnchorMenu.Instance.OnAudio === unimplementedFunction ? null : ( - } color={StrCast(Doc.UserDoc().userColor)} /> + } + color={StrCast(Doc.UserDoc().userColor)} + /> )} {this.canEdit() && } color={StrCast(Doc.UserDoc().userColor)} />} } popup={} color={StrCast(Doc.UserDoc().userColor)} /> {AnchorMenu.Instance.StartCropDrag === unimplementedFunction ? null : ( - } color={StrCast(Doc.UserDoc().userColor)} /> + } + color={StrCast(Doc.UserDoc().userColor)} + /> )} ) : ( <> - {this.Delete !== returnFalse && } color={StrCast(Doc.UserDoc().userColor)} />} - {this.PinToPres !== returnFalse && } color={StrCast(Doc.UserDoc().userColor)} />} - {this.ShowTargetTrail !== returnFalse && } color={StrCast(Doc.UserDoc().userColor)} />} + {this.Delete !== returnFalse && ( + } + color={StrCast(Doc.UserDoc().userColor)} + /> + )} + {this.PinToPres !== returnFalse && ( + } + color={StrCast(Doc.UserDoc().userColor)} + /> + )} + {this.ShowTargetTrail !== returnFalse && ( + } + color={StrCast(Doc.UserDoc().userColor)} + /> + )} {this.IsTargetToggler !== returnFalse && (