From 8e34f6962ae747a115672ed30c086490c64a9b8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 7 Nov 2024 20:10:37 +0100 Subject: [PATCH] Add conditional cursor style for canvas when a zone is added within the canvas Modified the canvas element to conditionally apply a CSS class when adding a zone. This change ensures the cursor changes to 'copy' for visual feedback during the add operation. --- .../public/vuejs/DocumentSignature/App.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue b/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue index 5fcdb8545..924e30c30 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue +++ b/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue @@ -206,8 +206,8 @@ -
- +
+
@@ -672,6 +672,15 @@ init(); #canvas { box-shadow: 0 20px 20px rgba(0, 0, 0, 0.2); } + +.onAddZone { + cursor: not-allowed; + + #canvas { + cursor: copy; + } +} + div#action-buttons { position: sticky; bottom: 0px;