Skip to content

Commit

Permalink
fix: author image style
Browse files Browse the repository at this point in the history
  • Loading branch information
jvmonjo committed Feb 25, 2024
1 parent 5cf4111 commit 7912641
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
7 changes: 3 additions & 4 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -432,14 +432,14 @@ html {
.authors-container {
display: flex;
justify-content: center;
gap: 20px; }
gap: 20px;
margin-bottom: 2rem; }

.author-image-container {
width: 100px;
height: 100px;
border-radius: 50%;
overflow: hidden;
border: 2px solid white; }
overflow: hidden; }
.author-image-container img {
width: 100%;
height: 100%;
Expand Down Expand Up @@ -1549,7 +1549,6 @@ textarea {
width: 100%;
margin: 0;
padding: 0;
flex-basis: content;
list-style: none; }
@media only screen and (max-width: 960px) {
.nav-footer ul {
Expand Down
8 changes: 5 additions & 3 deletions partials/primary-author.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
{{! Loop through authors }}
<div class="authors-container">
{{#foreach authors}}
<div class="author-image-container">
<img class="author-profile-image" src='{{ profile_image }}' alt='{{ name }}'>
</div>
{{#if profile_image}}
<div class="author-image-container">
<img class="author-profile-image" src='{{ profile_image }}' alt='{{ name }}'>
</div>
{{/if}}
{{/foreach}}
</div>
{{/get}}
2 changes: 1 addition & 1 deletion src/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ html {
display: flex;
justify-content: center;
gap: 20px;
margin-bottom: 2rem;
}

.author-image-container {
width: 100px;
height: 100px;
border-radius: 50%;
overflow: hidden;
border: 2px solid white;
img {
width: 100%;
height: 100%;
Expand Down

0 comments on commit 7912641

Please sign in to comment.