Skip to content

Commit

Permalink
added responsive styles and previously removed the custom-button comp…
Browse files Browse the repository at this point in the history
…onent
  • Loading branch information
Gururajj77 committed Jan 13, 2024
1 parent d092663 commit 63642cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 3 additions & 5 deletions src/app/users/users.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,25 @@ <h3>{{ user.name }}</h3>
<p class="user-followers">Followers: {{ user.followerCount }}</p>
</div>
</div>
@if (user.isFollowing) {
<div class="button-container">
@if (user.isFollowing) {
<button
(click)="unfollowUser(user.uid)"
class="custom-following-button"
type="submit"
>
Following
</button>
</div>
} @else{
<div class="button-container">
} @else{
<button
class="custom-button"
(click)="followUser(user.uid)"
type="submit"
>
Follow
</button>
}
</div>
}
</div>
}
</section>
5 changes: 4 additions & 1 deletion src/app/users/users.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@
}

.button-container {
margin-top: 10px;
padding: 10px;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
}

0 comments on commit 63642cd

Please sign in to comment.