diff options
| author | bobzel <zzzman@gmail.com> | 2023-05-16 14:50:29 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-05-16 14:50:29 -0400 |
| commit | 46cf6c823ca8ab628cd8c5bd7fdfe8945344a014 (patch) | |
| tree | 1e49ff8b3c29a3e31ad96ec39dd337cb58136426 /src/client/views/pdf/AnchorMenu.tsx | |
| parent | df7257d1b39f51a7e00a495f0d4a2366f0e21f7d (diff) | |
fixed bugs with goldenlayout dragging and undoing. fixed searching for filter values in sidebars. Stopped creating empty list for collections when datafield() is accessed because it messes up undo of a collection. fixed tab title editing. from marquee. Added UndoStack UI and additional naming support in code.
Diffstat (limited to 'src/client/views/pdf/AnchorMenu.tsx')
| -rw-r--r-- | src/client/views/pdf/AnchorMenu.tsx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/client/views/pdf/AnchorMenu.tsx b/src/client/views/pdf/AnchorMenu.tsx index d6dddf71a..5480600b0 100644 --- a/src/client/views/pdf/AnchorMenu.tsx +++ b/src/client/views/pdf/AnchorMenu.tsx @@ -395,22 +395,25 @@ export class AnchorMenu extends AntimodeMenu<AntimodeMenuProps> { ) : ( <> <Tooltip key="trash" title={<div className="dash-tooltip">Remove Link Anchor</div>}> - <button className="antimodeMenu-button" onPointerDown={this.Delete}> + <button className="antimodeMenu-button" style={{ display: this.Delete === returnFalse ? 'none' : undefined }} onPointerDown={this.Delete}> <FontAwesomeIcon icon="trash-alt" size="lg" /> </button> </Tooltip> <Tooltip key="Pin" title={<div className="dash-tooltip">Pin to Presentation</div>}> - <button className="antimodeMenu-button" onPointerDown={this.PinToPres}> + <button className="antimodeMenu-button" style={{ display: this.PinToPres === returnFalse ? 'none' : undefined }} onPointerDown={this.PinToPres}> <FontAwesomeIcon icon="map-pin" size="lg" /> </button> </Tooltip> <Tooltip key="trail" title={<div className="dash-tooltip">Show Linked Trail</div>}> - <button className="antimodeMenu-button" onPointerDown={this.ShowTargetTrail}> + <button className="antimodeMenu-button" style={{ display: this.ShowTargetTrail === returnFalse ? 'none' : undefined }} onPointerDown={this.ShowTargetTrail}> <FontAwesomeIcon icon="taxi" size="lg" /> </button> </Tooltip> <Tooltip key="toggle" title={<div className="dash-tooltip">make target visibility toggle on click</div>}> - <button className="antimodeMenu-button" style={{ color: this.IsTargetToggler() ? 'black' : 'white', backgroundColor: this.IsTargetToggler() ? 'white' : 'black' }} onPointerDown={this.MakeTargetToggle}> + <button + className="antimodeMenu-button" + style={{ display: this.IsTargetToggler === returnFalse ? 'none' : undefined, color: this.IsTargetToggler() ? 'black' : 'white', backgroundColor: this.IsTargetToggler() ? 'white' : 'black' }} + onPointerDown={this.MakeTargetToggle}> <FontAwesomeIcon icon="thumbtack" size="lg" /> </button> </Tooltip> |
