task overlay responsive

This commit is contained in:
Chneemann 2024-04-25 08:33:26 +02:00
parent fc3fff0977
commit 5ea171847e
4 changed files with 20 additions and 25 deletions

View file

@ -7,13 +7,13 @@ import { AddTaskComponent } from './components/add-task/add-task.component';
import { BoardComponent } from './components/board/board.component';
import { ContactsComponent } from './components/contacts/contacts.component';
import { OverlayComponent } from './shared/components/overlay/overlay.component';
import { TaskOverlayComponent } from './shared/components/overlay/task-overlay/task-overlay.component';
export const routes: Routes = [
{ path: '', component: SummaryComponent },
{ path: 'summary', component: SummaryComponent },
{ path: 'add-task', component: AddTaskComponent },
{ path: 'board', component: BoardComponent },
{ path: 'board/:id', component: BoardComponent },
{ path: 'contacts', component: ContactsComponent },
{ path: 'contacts/:id', component: ContactsComponent },
{ path: 'help', component: HelpComponent },

View file

@ -2,7 +2,6 @@
*ngIf="overlayData"
[ngClass]="{ overlay: isOverlay, 'overlay-mobile': isOverlayMobile }"
>
<div class="overlay-content">
@if (overlayType === "taskOverlay") {
<app-task-overlay
[overlayData]="overlayData"
@ -15,5 +14,4 @@
(closeDialogEmitter)="onCloseOverlay($event)"
></app-task-edit-overlay>
}
</div>
</div>

View file

@ -1,7 +1,9 @@
.overlay {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
width: 100vw;
height: 100vh;
backdrop-filter: blur(5px);
@ -11,19 +13,14 @@
align-items: center;
z-index: 999;
}
.overlay-mobile {
position: fixed;
top: 96px;
bottom: 80px;
top: 0;
bottom: 0;
left: 0;
right: 0;
width: 100vw;
height: 100vh;
z-index: 999;
}
.overlay-content {
display: flex;
align-items: center;
justify-content: center;
}

View file

@ -9,7 +9,7 @@
.overlay-mobile {
background-color: var(--white);
width: calc(100vw - 24px);
height: calc(100vh - 200px);
height: calc(100vh - 24px);
padding: 12px;
}
@ -37,7 +37,7 @@
}
.content-mobile {
height: calc(700px - 159px);
height: calc(100vh - 214px);
overflow-y: auto;
}