From f423fa30fa92ff3b633b025087bef6c8c3c4c680 Mon Sep 17 00:00:00 2001 From: Shinuwa Date: Wed, 11 Nov 2026 17:11:14 +0100 Subject: [PATCH] Use the share icon and space the share dialog footer - Show the new share icon on the toolbox card and drawer send buttons. - Separate the single-use option from the dialog buttons. Co-Authored-By: Claude Opus 5.5 --- website/public/static/icons/share.svg | 17 +++++++++++++++++ website/src/features/toolboxes/ToolboxCard.jsx | 2 +- website/src/features/toolboxes/ToolboxPages.jsx | 2 +- website/src/styles/icons/_navigation.scss | 5 +++++ website/src/styles/overlays/_toolbox-share.scss | 4 ++++ 5 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 website/public/static/icons/share.svg diff --git a/website/public/static/icons/share.svg b/website/public/static/icons/share.svg new file mode 100644 index 0000000..d75f03e --- /dev/null +++ b/website/public/static/icons/share.svg @@ -0,0 +1,17 @@ + + + + + share + Created with Sketch Beta. + + + + + + + + + + + \ No newline at end of file diff --git a/website/src/features/toolboxes/ToolboxCard.jsx b/website/src/features/toolboxes/ToolboxCard.jsx index 2db9cc4..d777a31 100644 --- a/website/src/features/toolboxes/ToolboxCard.jsx +++ b/website/src/features/toolboxes/ToolboxCard.jsx @@ -65,7 +65,7 @@ export function ToolboxCard({ toolbox, game, actions, reorder }) {
- {actions.sharingEnabled && } + {actions.sharingEnabled && } actions.importToolbox(file, gameId)} /> - {actions.sharingEnabled && } + {actions.sharingEnabled && }
diff --git a/website/src/styles/icons/_navigation.scss b/website/src/styles/icons/_navigation.scss index de88bad..09d6e1d 100644 --- a/website/src/styles/icons/_navigation.scss +++ b/website/src/styles/icons/_navigation.scss @@ -44,6 +44,11 @@ -webkit-mask-image: url("/static/icons/import.svg"); } +.ui-icon-share { + mask-image: url("/static/icons/share.svg"); + -webkit-mask-image: url("/static/icons/share.svg"); +} + .ui-icon-send { mask-image: url("/static/icons/send.svg"); -webkit-mask-image: url("/static/icons/send.svg"); diff --git a/website/src/styles/overlays/_toolbox-share.scss b/website/src/styles/overlays/_toolbox-share.scss index a497836..a21c93b 100644 --- a/website/src/styles/overlays/_toolbox-share.scss +++ b/website/src/styles/overlays/_toolbox-share.scss @@ -41,6 +41,10 @@ margin-top: var(--space-4); } +.toolbox-share-form .nds-modal-footer { + margin-top: var(--space-5); +} + .toolbox-share-option { display: flex; align-items: flex-start;