Skip to content

Commit

Permalink
fix(GUI): html structure in AlertDialog for importPublications (PR #2658
Browse files Browse the repository at this point in the history
  Fixes #2657)
  • Loading branch information
arthur-lemeur authored Nov 27, 2024
1 parent c42bf87 commit 9e9ffe5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/renderer/assets/styles/components/alert.modals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@
margin-bottom: 20px;
color: var(--color-primary);
line-height: 1.5;
padding-left: 20px;
list-style-type: "- ";

ul {
padding-left: 20px;
list-style-type: "- ";
}
}

.AlertDialogButtonContainer {
Expand Down
4 changes: 1 addition & 3 deletions src/renderer/library/components/dialog/FileImport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class FileImport extends React.Component<IProps, undefined> {
this.props.__("catalog.addBookToLib")
}
</AlertDialog.Title>
<AlertDialog.Description className={stylesAlertModals.AlertDialogDescription}>
<AlertDialog.Description className={stylesAlertModals.AlertDialogDescription} asChild>
{
// useless ??
(!files || files.length === 0) ?
Expand All @@ -74,11 +74,9 @@ class FileImport extends React.Component<IProps, undefined> {
// </div>
) : (
// <div className={stylesAlertModals.AlertDialogContent}>
<div>
<ul>
{files.map((file, i) => <li key={i}>{file.name}</li>)}
</ul>
</div>
// <div>
// </div>
// </div>
Expand Down

0 comments on commit 9e9ffe5

Please sign in to comment.