feat: make TaskOverlayComponent responsive

This commit is contained in:
Chneemann 2024-11-07 09:06:09 +01:00
parent 7bcb7b8e49
commit 45697d688d
3 changed files with 38 additions and 13 deletions

View file

@ -217,10 +217,13 @@ export class LoginService {
} }
// FORGOT PASSWORD // FORGOT PASSWORD
passwordReset(email: string) { passwordReset(email: string) {
const auth = getAuth(); const auth = getAuth();
sendPasswordResetEmail(auth, email) const actionCodeSettings = {
url: 'https://join.andre-kempf.com/',
handleCodeInApp: true,
};
sendPasswordResetEmail(auth, email, actionCodeSettings)
.then(() => { .then(() => {
this.router.navigate(['/login/notice/pw-send']); this.router.navigate(['/login/notice/pw-send']);
this.sharedService.isBtnDisabled = false; this.sharedService.isBtnDisabled = false;

View file

@ -1,7 +1,7 @@
.overlay { .overlay {
width: 525px; width: 525px;
height: 700px; height: 700px;
padding: 48px 40px 48px 40px; padding: 48px 40px;
border-radius: 30px; border-radius: 30px;
background-color: var(--white); background-color: var(--white);
box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.1); box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.1);
@ -50,7 +50,7 @@
font-size: 20px; font-size: 20px;
font-weight: 400; font-weight: 400;
margin-top: 32px; margin-top: 32px;
width: 100%; width: 99%;
word-wrap: break-word; word-wrap: break-word;
} }
@ -254,9 +254,22 @@
/*------------- RESPONSIVE -------------*/ /*------------- RESPONSIVE -------------*/
@media screen and (max-height: 800px) {
.content {
height: calc(580px - 114px);
padding-right: 12px;
overflow-y: auto;
}
}
@media screen and (max-width: 650px) { @media screen and (max-width: 650px) {
.overlay {
width: 80vw;
padding: 24px 20px;
}
.headline { .headline {
font-size: 36px; font-size: 26px;
} }
.description, .description,
@ -267,18 +280,27 @@
font-size: 16px; font-size: 16px;
} }
.subtasks, .subtasks p,
.assigned, .assigned p,
.date, .date p,
.priority { .priority p,
p { .creator p,
.subtask p {
font-size: 16px; font-size: 16px;
} }
} }
}
@media screen and (max-width: 450px) { @media screen and (max-width: 450px) {
.notice { .notice p {
font-size: 14px; font-size: 14px;
} }
.overlay {
width: 75vw;
}
.priority p,
.date p {
width: 90px;
}
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB