Skip to content

Commit

Permalink
fixed login button position
Browse files Browse the repository at this point in the history
Signed-off-by: garvinkon <[email protected]>
  • Loading branch information
garvinkon committed Jan 23, 2024
1 parent 0cc4781 commit d4e45b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions Frontend/src/app/app.component.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
body{
display: flex;
flex-direction: column;
}

.login-container {
position: absolute;
top: 30px; /* Passen Sie diesen Wert an, um den gewünschten Abstand zu erreichen */
right: 35px;
align-self: flex-end;
margin-right: 20px;
}

.cards-container {
Expand Down
4 changes: 3 additions & 1 deletion Frontend/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
text-align: center;
font-size: 5em;
margin-top: 30px;
margin-bottom: 30px;
margin-bottom: 10px;
margin-right: 80px;
size: 45px;
"
>
{{ title }}
</h1>

<div class="login-container" *ngIf="!isLoggedIn">
<button
mat-raised-button color="primary" (click)="openLoginDialog()">Login</button>
Expand All @@ -22,6 +23,7 @@
<button
mat-raised-button color="primary" (click)="logout()">Logout</button>
</div>

<div class="cards-container">
<mat-card class="history-div">
<div *ngIf="errorMessage" class="error-message">
Expand Down

0 comments on commit d4e45b3

Please sign in to comment.