Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jorbush committed Nov 11, 2024
1 parent 8727d7a commit e8af752
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ public void deletePost(final Long id, final User currentUser) {

private PostResponseDTO convertToDTO(final Post post) {
User user = post.getUser();
UserDTO userDTO = new UserDTO(user.getId(), user.getUsername(), user.getEmail(), user.getImage());
UserDTO userDTO =
new UserDTO(user.getId(), user.getUsername(), user.getEmail(), user.getImage());

return new PostResponseDTO(
post.getId(),
Expand Down
15 changes: 7 additions & 8 deletions postrify-frontend/src/app/components/header/header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,13 @@ import { SettingsModalComponent } from '../settings-modal/settings-modal.compone
<div class="auth-container">
@if (authService.isAuthenticated()) {
<div
class="current-photo"
[style.backgroundImage]="
userImage
? 'url(' + userImage + ')'
: 'url(/assets/placeholder.jpg)'
"
>
</div>
class="current-photo"
[style.backgroundImage]="
userImage
? 'url(' + userImage + ')'
: 'url(/assets/placeholder.jpg)'
"
></div>
<span class="username">{{ authService.getUsername() }}</span>
<button class="logout-button" (click)="logout()">
<svg
Expand Down
12 changes: 7 additions & 5 deletions postrify-frontend/src/app/components/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,15 @@ import { Page } from '../../models/page.model';
opacity: 0.5;
}
.author, .date {
display: flex;
align-items: center;
gap: 0.4rem;
.author,
.date {
display: flex;
align-items: center;
gap: 0.4rem;
}
.post-card h3, .post-card p {
.post-card h3,
.post-card p {
margin: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ import { BoldTextPipe } from '../../pipes/bold-text.pipe';
}
}
.author, .reading-time, .date {
.author,
.reading-time,
.date {
display: flex;
align-items: center;
gap: 0.4rem;
Expand Down

0 comments on commit e8af752

Please sign in to comment.