Improve layout and readability in Documents.razor

- Wrapped checkbox input in a div for better alignment.
- Changed documents initialization from an empty array to a list.
- Updated document addition code for improved readability.
- Modified ConfirmDialogOptions and ToastMessage initializations to use object initializer syntax.
- Translated comment in DocxContentDecoder.cs from Italian to English.
This commit is contained in:
Marco Minerva
2025-06-11 17:47:44 +02:00
parent cdbe2e3a91
commit 1975d63189
2 changed files with 20 additions and 18 deletions
@@ -76,7 +76,9 @@ else
{ {
<tr> <tr>
<td> <td>
<div class="d-flex justify-content-center align-items-center">
<CheckboxInput @bind-Value="document.IsSelected" /> <CheckboxInput @bind-Value="document.IsSelected" />
</div>
</td> </td>
<td>@document.Id</td> <td>@document.Id</td>
<td>@document.Name</td> <td>@document.Name</td>
@@ -36,7 +36,7 @@ public class DocxContentDecoder(IServiceProvider serviceProvider) : IContentDeco
pageBuilder.AppendLine(paragraph.InnerText); pageBuilder.AppendLine(paragraph.InnerText);
} }
// Dopo aver processato tutti i paragrafi, aggiungi l'ultima pagina (anche se vuota) // After processing all paragraphs, add the last page (even if empty).
pages.Add(pageBuilder.ToString()); pages.Add(pageBuilder.ToString());
var chunks = new List<Chunk>(); var chunks = new List<Chunk>();