Skip to content

Commit

Permalink
Adjust the look of the post likes modal 🖌🎨
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-m-kandil committed Sep 1, 2023
1 parent 9a513cd commit 38197b5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions posts/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ if (CSRFTokenInput) {
for (let i = 0; i < likes.length; i++) {
likesModalDialog.innerHTML += `
<div class="d-flex justify-content-center align-items-center my-3">
<div class="me-3" style="width: 20%;">
<div class="me-3" style="width: 15%;">
<img id="liker-img-{{ post.id }}"
class="w-100 rounded border border-dark"
src="/static/images/${
Expand All @@ -318,7 +318,7 @@ if (CSRFTokenInput) {
<div class="vr class="mx-auto" style="opacity: 0.75; min-height: 5em;"></div>
<div class="ms-3">
<a id="liker-name-{{ post.id }}" href="#"
class="link-dark text-decoration-none h3 text-left">
class="link-dark text-decoration-none h4 text-left">
<strong>${likes[i].ownerName}</strong>
</a>
<br>
Expand Down
9 changes: 4 additions & 5 deletions posts/templates/posts/post_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,11 @@ <h6 class="h6 text-end mt-3">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<!-- <div class="modal-content" style="background-color: var(--monotext-bg-color); min-height: 75vh;"> -->
<div class="modal-content" style="background-color: var(--monotext-bg-color);">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel">Likes on "{{ post.title }}"</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="d-flex justify-content-end">
<button type="button" class="btn-close"
data-bs-dismiss="modal" aria-label="Close">
</button>
</div>
<div class="m-auto my-auto" id="likes-modal-dialog-{{ post.id }}">
<a href="#" class="link-secondary text-center text-decoration-none h6 mx-auto"
style="display: none;" onclick="return false;">
Expand Down
9 changes: 4 additions & 5 deletions posts/templates/posts/posts_block.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,11 @@ <h6 class="h6 text-end mt-3">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<!-- <div class="modal-content" style="background-color: var(--monotext-bg-color); min-height: 75vh;"> -->
<div class="modal-content" style="background-color: var(--monotext-bg-color);">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel">Likes on "{{ post.title }}"</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="d-flex justify-content-end">
<button type="button" class="btn-close"
data-bs-dismiss="modal" aria-label="Close">
</button>
</div>
<div class="m-auto my-auto" id="likes-modal-dialog-{{ post.id }}">
<a href="#" class="link-secondary text-center text-decoration-none h6 mx-auto"
style="display: none;" onclick="return false;">
Expand Down

0 comments on commit 38197b5

Please sign in to comment.