Commit a853401
chore: [IEL-54] Adjusted pdf vertical positioning (#7861)
## Short description
Adjusts FCI PDF/document layouts to account for footer safe-area
measurements so content positioning remains correct above footer
actions.
## List of changes proposed in this pull request
- Measure footer actions/safe-area and apply bottom margins in
`DocumentWithSignature` and `FciDocumentsScreen`
- for `DocumentWithSignature` there's spacing added above the footer
button
[extraFooterActionsMargin](https://github.com/pagopa/io-app/pull/7861/changes#diff-22a00a9883d0bdf296564791d8745fc2354d0cf4f0e42fe1a3dc85e9211bc988R66)
in order to match the look of `FciDocumentsScreen`
## How to test
Start from MESSAGE_DETAIL for a signature request in state
WAIT_FOR_SIGNATURE, then access from the message a document to sign
(`FciDocumentsScreen`) and the same document with signature preview
(`DocumentWithSignature`)
<table><tr><th>Before</th><th>After</th></tr><tr><td>
<img width="617" height="1319" alt="image"
src="https://github.com/user-attachments/assets/7a3b8afe-696b-4f89-902a-99fd510861f0"
/>
</td><td>
<img width="617" height="1320" alt="image"
src="https://github.com/user-attachments/assets/eb717078-e728-42a9-b8eb-2c4dee2cd4d3"
/>
</td></tr><tr><td>
<img width="615" height="1318" alt="image"
src="https://github.com/user-attachments/assets/0ed8ead0-7b20-4a96-a60b-d16eac50dd20"
/>
</td><td>
<img width="616" height="1318" alt="image"
src="https://github.com/user-attachments/assets/2411c3e9-533e-474f-9201-3d81bae4d8e4"
/>
</td></tr></table>
---------
Co-authored-by: Alice Di Rico <83651704+Ladirico@users.noreply.github.com>1 parent d0624cd commit a853401
File tree
2 files changed
+43
-4
lines changed- ts/features/fci
- components
- screens/valid
2 files changed
+43
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | | - | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| 66 | + | |
| 67 | + | |
63 | 68 | | |
64 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
| |||
225 | 233 | | |
226 | 234 | | |
227 | 235 | | |
228 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
229 | 247 | | |
| 248 | + | |
230 | 249 | | |
231 | 250 | | |
232 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
4 | 9 | | |
| |||
69 | 74 | | |
70 | 75 | | |
71 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
72 | 82 | | |
73 | 83 | | |
74 | 84 | | |
| |||
272 | 282 | | |
273 | 283 | | |
274 | 284 | | |
275 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
276 | 295 | | |
| 296 | + | |
277 | 297 | | |
278 | 298 | | |
279 | 299 | | |
| |||
0 commit comments