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 <noreply@anthropic.com>
This commit is contained in:
parent
bec9ea5b2f
commit
f423fa30fa
5 changed files with 28 additions and 2 deletions
|
|
@ -65,7 +65,7 @@ export function ToolboxCard({ toolbox, game, actions, reorder }) {
|
|||
<div className="card-actions nds-card-actions nds-toolbar">
|
||||
<a className="card-icon-button nds-icon-button" data-size="md" href={`#/toolbox/${toolbox.id}`} aria-label={`Ouvrir ${toolbox.name}`} title="Ouvrir"><Icon name="open" /></a>
|
||||
<button className="card-icon-button nds-icon-button" data-size="md" onClick={() => actions.exportToolbox(toolbox.id)} aria-label={`Exporter ${toolbox.name}`} title="Exporter"><Icon name="export" /></button>
|
||||
{actions.sharingEnabled && <button className="card-icon-button nds-icon-button" data-size="md" onClick={() => actions.openShareToolbox(toolbox.id)} aria-label={`Envoyer ${toolbox.name}`} title="Envoyer"><Icon name="send" /></button>}
|
||||
{actions.sharingEnabled && <button className="card-icon-button nds-icon-button" data-size="md" onClick={() => actions.openShareToolbox(toolbox.id)} aria-label={`Envoyer ${toolbox.name}`} title="Envoyer"><Icon name="share" /></button>}
|
||||
<button className="card-icon-button nds-icon-button" data-size="md" data-variant="danger" onClick={() => actions.setConfirmModal({
|
||||
title: "Supprimer la toolbox",
|
||||
message: `Supprimer "${toolbox.name}" et ses données locales ?`,
|
||||
|
|
|
|||
|
|
@ -484,7 +484,7 @@ export function ToolboxDrawer({ gameId, game, siteContent, toolboxes, links, act
|
|||
<button className="drawer-action-button nds-icon-button" data-size="sm" onClick={() => actions.setLinkModalGameId(gameId)} aria-label="Lier une toolbox" title="Lier"><Icon name="link" /></button>
|
||||
<ImportButton className="drawer-action-button nds-icon-button import-icon-button" data-size="sm" ariaLabel="Importer une toolbox" title="Importer" icon="import" onFile={(file) => actions.importToolbox(file, gameId)} />
|
||||
<button className="drawer-action-button nds-icon-button" data-size="sm" onClick={() => actions.exportToolbox(selectedId)} disabled={!selectedId} aria-label="Exporter la toolbox liée" title="Exporter"><Icon name="export" /></button>
|
||||
{actions.sharingEnabled && <button className="drawer-action-button nds-icon-button" data-size="sm" onClick={() => actions.openShareToolbox(selectedId)} disabled={!selectedId} aria-label="Envoyer la toolbox liée" title="Envoyer"><Icon name="send" /></button>}
|
||||
{actions.sharingEnabled && <button className="drawer-action-button nds-icon-button" data-size="sm" onClick={() => actions.openShareToolbox(selectedId)} disabled={!selectedId} aria-label="Envoyer la toolbox liée" title="Envoyer"><Icon name="share" /></button>}
|
||||
</div>
|
||||
</div>
|
||||
<button className="drawer-close-button nds-icon-button" data-size="sm" onClick={() => actions.setDrawerGameId("")} aria-label="Fermer" title="Fermer"><Icon name="close" /></button>
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue