From 5b426dce87e9e1dc99085306fa12ab257baec397 Mon Sep 17 00:00:00 2001 From: Joshua Nascimento Date: Sat, 30 Sep 2023 01:02:09 -0400 Subject: [PATCH] changed position of save to library in tooltip bar --- src/views/Game/GameDock.tsx | 14 ++++---- src/views/Game/GameLibraryModal.tsx | 56 +++++++++++++++++++---------- 2 files changed, 45 insertions(+), 25 deletions(-) diff --git a/src/views/Game/GameDock.tsx b/src/views/Game/GameDock.tsx index 7993f3fb83..07ea2107b0 100644 --- a/src/views/Game/GameDock.tsx +++ b/src/views/Game/GameDock.tsx @@ -516,13 +516,6 @@ export function GameDock({ )} {/* Add To Library functionality */} - { - - - {_("Save to Library")} - - - } {sgf_download_enabled && sgf_with_ai_review_url && ( @@ -531,6 +524,13 @@ export function GameDock({ )} + { + + + {_("Save to Library")} + + + } {sgf_download_enabled && sgf_with_comments_url && ( diff --git a/src/views/Game/GameLibraryModal.tsx b/src/views/Game/GameLibraryModal.tsx index a57de3de8f..8603012d2a 100644 --- a/src/views/Game/GameLibraryModal.tsx +++ b/src/views/Game/GameLibraryModal.tsx @@ -36,6 +36,7 @@ export class GameLibraryModal extends Modal

Libraries

- + {/* If user has collections in their library map and render them. Otherwise; allow user to create collection */} {this.state.collections.length > 0 ? ( - this.state.collections.map((data) => ( -
- -

{data[1]}

-
- - - -
- )) + <> + + + + + + {this.state.collections.map((data) => ( +
+ +

{data[1]}

+
+ + + +
+ ))} + ) : ( -
+
+ + + + +