mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-14 10:34:06 +02:00
fix pause-rounded icon typos and comments (#5992)
This commit is contained in:
@@ -488,7 +488,7 @@ const SignSettings = ({
|
|||||||
const handleCanvasSignatureChange = useCallback((data: string | null) => {
|
const handleCanvasSignatureChange = useCallback((data: string | null) => {
|
||||||
const nextValue = data ?? undefined;
|
const nextValue = data ?? undefined;
|
||||||
setCanvasSignatureData(prevData => {
|
setCanvasSignatureData(prevData => {
|
||||||
// Reset pause-rounded state and trigger placement for signature changes
|
// Reset pause state and trigger placement for signature changes
|
||||||
// (onDrawingComplete handles initial activation)
|
// (onDrawingComplete handles initial activation)
|
||||||
if (prevData && prevData !== nextValue && nextValue) {
|
if (prevData && prevData !== nextValue && nextValue) {
|
||||||
setPlacementManuallyPaused(false);
|
setPlacementManuallyPaused(false);
|
||||||
@@ -899,7 +899,7 @@ const SignSettings = ({
|
|||||||
color: isPlacementMode ? 'blue' : 'teal',
|
color: isPlacementMode ? 'blue' : 'teal',
|
||||||
title: isPlacementMode
|
title: isPlacementMode
|
||||||
? translate('instructions.title', 'How to add your signature')
|
? translate('instructions.title', 'How to add your signature')
|
||||||
: translate('instructions.pause-roundedd', 'Placement pause-roundedd'),
|
: translate('instructions.paused', 'Placement paused'),
|
||||||
message: isPlacementMode
|
message: isPlacementMode
|
||||||
? placementInstructions()
|
? placementInstructions()
|
||||||
: translate('instructions.resumeHint', 'Resume placement to click and add your signature.'),
|
: translate('instructions.resumeHint', 'Resume placement to click and add your signature.'),
|
||||||
@@ -920,7 +920,7 @@ const SignSettings = ({
|
|||||||
onActivateSignaturePlacement?.();
|
onActivateSignaturePlacement?.();
|
||||||
};
|
};
|
||||||
|
|
||||||
// Handle Escape key to toggle pause-rounded/resume
|
// Handle Escape key to toggle pause/resume
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!isCurrentTypeReady) return;
|
if (!isCurrentTypeReady) return;
|
||||||
|
|
||||||
@@ -943,11 +943,11 @@ const SignSettings = ({
|
|||||||
onActivateSignaturePlacement || onDeactivateSignature
|
onActivateSignaturePlacement || onDeactivateSignature
|
||||||
? isPlacementMode
|
? isPlacementMode
|
||||||
? (
|
? (
|
||||||
<Tooltip label={translate('mode.pause-rounded', 'Pause placement')}>
|
<Tooltip label={translate('mode.pause', 'Pause placement')}>
|
||||||
<ActionIcon
|
<ActionIcon
|
||||||
variant="default"
|
variant="default"
|
||||||
size="lg"
|
size="lg"
|
||||||
aria-label={translate('mode.pause-rounded', 'Pause placement')}
|
aria-label={translate('mode.pause', 'Pause placement')}
|
||||||
onClick={handlePausePlacement}
|
onClick={handlePausePlacement}
|
||||||
disabled={disabled || !onDeactivateSignature}
|
disabled={disabled || !onDeactivateSignature}
|
||||||
style={{
|
style={{
|
||||||
@@ -960,7 +960,7 @@ const SignSettings = ({
|
|||||||
>
|
>
|
||||||
<LocalIcon icon="pause-rounded" width={20} height={20} />
|
<LocalIcon icon="pause-rounded" width={20} height={20} />
|
||||||
<Text component="span" size="sm" fw={500}>
|
<Text component="span" size="sm" fw={500}>
|
||||||
{translate('mode.pause-rounded', 'Pause placement')}
|
{translate('mode.pause', 'Pause placement')}
|
||||||
</Text>
|
</Text>
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|||||||
Reference in New Issue
Block a user