Skip to content

Commit

Permalink
UI errors fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-kakarot committed Jul 1, 2024
1 parent d1d76a6 commit 496f2d8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
22 changes: 19 additions & 3 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,17 @@ body {
text-align: center;
}

.airing-now-anime-title {
max-width: 250px;
left: 0;
right: 0;
margin: auto;
font-size: 20px;
font-weight: 600;
font-family: 'Quicksand';
margin-top: 10px;
}

.image {
width: 207px;
height: 270px;
Expand Down Expand Up @@ -180,8 +191,8 @@ body {
#popular-anime-container,
#upcoming-anime-container {
margin-top: 100px;
display: grid;
grid-auto-flow: column;
display: flex;
grid-auto-flow: row;
contain: content;
width: 100%;
overflow: hidden;
Expand All @@ -206,6 +217,7 @@ body {
border-radius: 10px;
cursor: pointer;
transition: 0.5s;
width: fit-content;
}

.airing-now-anime-cards:hover {
Expand Down Expand Up @@ -691,11 +703,15 @@ body {
height: 50px;
}

.anime-title {
.anime-title, .airing-now-anime-title {
margin: 0px;
font-size: 30px;
}

.airing-now-anime-title {
max-width: 380px;
}

#popular-anime-header,
#top-anime-header,
#trailer-header,
Expand Down
2 changes: 1 addition & 1 deletion js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ function homePageDiv() {
const details = document.createElement("div");
details.classList.add("airing-now-anime-details");
details.innerHTML = `
<p class="anime-title">${anime.title.romaji}</p>
<p class="airing-now-anime-title">${anime.title.romaji}</p>
<table class="airing-now-details-table">
<tr>
<td>Score:</td>
Expand Down

0 comments on commit 496f2d8

Please sign in to comment.