From 1dcbf90de3b74ec17fdf7ba4cddf364301f25287 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Tue, 30 Dec 2025 15:05:22 -0300 Subject: [PATCH 1/2] fix: redirect to envelope validation page after signing envelope file When signing a file that is part of an envelope, the system was redirecting to the individual file validation page instead of the envelope validation page. This caused users to see only the single file information rather than the complete envelope view. This fix checks if the signed file has a parent envelope and returns the parent envelope UUID in the response, ensuring proper navigation to the envelope validation view. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- lib/Controller/SignFileController.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/Controller/SignFileController.php b/lib/Controller/SignFileController.php index 5e3d088404..576105bf35 100644 --- a/lib/Controller/SignFileController.php +++ b/lib/Controller/SignFileController.php @@ -132,12 +132,18 @@ public function sign(string $method, array $elements = [], string $identifyValue ->setVisibleElements($elements) ->sign(); + $validationUuid = $libreSignFile->getUuid(); + if ($libreSignFile->hasParent()) { + $parentFile = $this->signFileService->getFile($libreSignFile->getParentFileId()); + $validationUuid = $parentFile->getUuid(); + } + return new DataResponse( [ 'action' => JSActions::ACTION_SIGNED, 'message' => $this->l10n->t('File signed'), 'file' => [ - 'uuid' => $libreSignFile->getUuid() + 'uuid' => $validationUuid ] ], Http::STATUS_OK From 602e47bc99836a664008c782e3a63be43ff237b2 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Tue, 30 Dec 2025 15:31:17 -0300 Subject: [PATCH 2/2] fix: improve responsive layout for validation views Consolidate responsive breakpoints to 700px for better mobile experience. On screens <= 700px, sections now have: - Reduced padding (12px vertical, 8px horizontal) - No box-shadow (removed border) - 2px top border for visual separation between sections - First section has no top border to avoid unnecessary line - Reduced margins to maximize screen space This ensures clear visual separation without horizontal borders that would clutter narrow screens, while maintaining good readability on larger displays with box-shadow borders. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- .../validation/EnvelopeValidation.vue | 13 +++++++++++-- src/components/validation/FileValidation.vue | 13 +++++++++++-- src/views/Validation.vue | 19 +++++++++++++++---- 3 files changed, 37 insertions(+), 8 deletions(-) diff --git a/src/components/validation/EnvelopeValidation.vue b/src/components/validation/EnvelopeValidation.vue index d332d58a94..649e578855 100644 --- a/src/components/validation/EnvelopeValidation.vue +++ b/src/components/validation/EnvelopeValidation.vue @@ -275,9 +275,18 @@ export default { box-shadow: 0 0 6px 0 var(--color-box-shadow); margin-bottom: 16px; - @media screen and (max-width: 900px) { - padding: 12px; + @media screen and (max-width: 700px) { + padding: 12px 8px; box-shadow: none; + border-top: 2px solid var(--color-border-dark); + border-radius: 0; + margin-bottom: 0; + margin-top: 12px; + + &:first-child { + border-top: none; + margin-top: 0; + } } .header { diff --git a/src/components/validation/FileValidation.vue b/src/components/validation/FileValidation.vue index 39515785c0..19b5ba679f 100644 --- a/src/components/validation/FileValidation.vue +++ b/src/components/validation/FileValidation.vue @@ -82,9 +82,18 @@ export default { } } - @media screen and (max-width: 900px) { - padding: 12px; + @media screen and (max-width: 700px) { + padding: 12px 8px; box-shadow: none; + border-top: 2px solid var(--color-border-dark); + border-radius: 0; + margin-bottom: 0; + margin-top: 12px; + + &:first-child { + border-top: none; + margin-top: 0; + } } } diff --git a/src/views/Validation.vue b/src/views/Validation.vue index 8354848c1c..8aeb509a61 100644 --- a/src/views/Validation.vue +++ b/src/views/Validation.vue @@ -624,12 +624,15 @@ export default { width: 100%; box-shadow: 0 0 6px 0 var(--color-box-shadow); - @media screen and (max-width: 900px) { + @media screen and (max-width: 700px) { width: 100%; display: flex; justify-content: center; align-items: center; max-width: 100%; + padding: 12px; + margin: 12px; + box-shadow: none; } } button { @@ -647,8 +650,18 @@ export default { margin-bottom: 10px; width: unset; overflow: hidden; - @media screen and (max-width: 900px) { + @media screen and (max-width: 700px) { max-width: 100%; + padding: 12px 8px; + box-shadow: none; + border-top: 2px solid var(--color-border-dark); + border-radius: 0; + margin-bottom: 0; + margin-top: 12px; + &:first-child { + border-top: none; + margin-top: 0; + } } .action-items { gap: 12px; @@ -773,8 +786,6 @@ export default { margin-inline-end: 0; .section { width: unset; - box-shadow: none; - padding: 10px !important; .signers { .date-signed-desktop {