Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Fauzanmhr committed Aug 26, 2024
2 parents e635479 + 74fa4e8 commit 04bbc87
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions views/schedule.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<div class="card-body">
<h2 class="card-title"><%= day.hari %></h2>
<p class="card-text">
<% day.anime.forEach((anime, index) => { %>
<a href="/anime/<%= anime.slug %>" class="badge bg-dark me-1 text-decoration-none"><%= anime.judul %></a><% if (index < day.anime.length - 1) { %>, <% } %>
<% day.anime.forEach((anime) => { %>
<a href="/anime/<%= anime.slug %>" class="badge bg-dark me-1 text-decoration-none long-badge"><%= anime.judul %></a>
<% }) %>
</p>
</div>
Expand All @@ -19,4 +19,14 @@
<!-- Bootstrap JS -->
<script src="/js/bootstrap.bundle.min.js"></script>
</body>
</html>
</html>

<style>
.long-badge {
margin: 2px;
word-wrap: break-word;
white-space: normal;
display: inline-block;
max-width: 100%;
}
</style>

0 comments on commit 04bbc87

Please sign in to comment.