Skip to content

Commit

Permalink
fix(frontend): proper fix for invalid characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Thundernerd committed Jan 2, 2024
1 parent 1ee5504 commit fdee121
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/Mangarr.Frontend/Pages/Manga/Link/AddModal.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<div class="modal fade" id="[email protected]("=", string.Empty).Replace("/", string.Empty)" tabindex="-1">
@using System.Web
<div class="modal fade" id="[email protected](MangaId)" tabindex="-1">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
Expand Down
7 changes: 3 additions & 4 deletions src/Mangarr.Frontend/Pages/Manga/Link/ContentSourceItem.razor
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<div class="d-flex flex-column card p-2 me-2 content-source-item">
@using System.Web
<div class="d-flex flex-column card p-2 me-2 content-source-item">
<img class="content-source-item-cover" src="@CoverImage" alt="cover" referrerpolicy="no-referrer">
<p class="text-truncate">@Title</p>
<button class="btn btn-primary" type="button" data-bs-toggle="modal" data-bs-target="#add-manga-modal-@MangaId.Replace("=", string.Empty).Replace("/", string.Empty)">Select</button>
<button class="btn btn-primary" type="button" data-bs-toggle="modal" data-bs-target="#add-manga-modal-@HttpUtility.UrlEncode(MangaId)">Select</button>
</div>

<AddModal Id="@Id" Identifier="@Identifier" MangaId="@MangaId"/>

@* href="/manga/@Id/add/@Identifier/@MangaId" *@

0 comments on commit fdee121

Please sign in to comment.