|
364 | 364 | stroke-width="3" |
365 | 365 | ></circle> |
366 | 366 | </svg> |
367 | | - {$_('filesharing.encryptPanel.sending')} |
| 367 | + <span class="upload-info-label"> |
| 368 | + {$_('filesharing.encryptPanel.sending')} |
| 369 | + </span> |
| 370 | + <button |
| 371 | + type="button" |
| 372 | + class="cancel-upload-btn" |
| 373 | + onclick={onCancelUpload} |
| 374 | + disabled={encryptState.selfAborted} |
| 375 | + > |
| 376 | + {$_('filesharing.cancel')} |
| 377 | + </button> |
368 | 378 | </div> |
369 | 379 | {#if $retryStatus} |
370 | 380 | <p class="retry-status" role="status"> |
|
377 | 387 | </p> |
378 | 388 | {/if} |
379 | 389 | </div> |
380 | | - <button |
381 | | - type="button" |
382 | | - class="crypt-btn crypt-btn-secondary cancel-upload-btn" |
383 | | - onclick={onCancelUpload} |
384 | | - disabled={encryptState.selfAborted} |
385 | | - > |
386 | | - {$_('filesharing.cancel')} |
387 | | - </button> |
388 | 390 | {:else} |
389 | 391 | <!-- Normal button --> |
390 | 392 | <button |
|
671 | 673 | stroke: var(--pg-text); |
672 | 674 | } |
673 | 675 |
|
| 676 | + .upload-info-label { |
| 677 | + flex: 1; |
| 678 | + } |
| 679 | +
|
674 | 680 | .cancel-upload-btn { |
675 | | - align-self: flex-start; |
676 | | - margin-top: 0.25rem; |
| 681 | + all: unset; |
| 682 | + box-sizing: border-box; |
| 683 | + font-family: var(--pg-font-family); |
| 684 | + font-size: var(--pg-font-size-sm); |
| 685 | + font-weight: var(--pg-font-weight-medium); |
| 686 | + color: var(--pg-on-primary); |
| 687 | + background: var(--pg-input-error); |
| 688 | + border-radius: var(--pg-border-radius-sm); |
| 689 | + padding: 0.4rem 0.9rem; |
| 690 | + cursor: pointer; |
| 691 | + transition: background 0.2s ease; |
| 692 | + } |
| 693 | +
|
| 694 | + .cancel-upload-btn:hover:not(:disabled) { |
| 695 | + background: color-mix(in srgb, var(--pg-input-error) 85%, black); |
| 696 | + } |
| 697 | +
|
| 698 | + .cancel-upload-btn:focus-visible { |
| 699 | + outline: 2px solid var(--pg-primary); |
| 700 | + outline-offset: 2px; |
| 701 | + } |
| 702 | +
|
| 703 | + .cancel-upload-btn:disabled { |
| 704 | + opacity: 0.6; |
| 705 | + cursor: not-allowed; |
677 | 706 | } |
678 | 707 |
|
679 | 708 | .retry-status { |
|
0 commit comments