Skip to content

Commit 84e7ac5

Browse files
committed
fix tooltip position
1 parent 37cb631 commit 84e7ac5

3 files changed

Lines changed: 17 additions & 8 deletions

File tree

projects/social_platform/src/app/office/office.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ export class OfficeComponent implements OnInit, OnDestroy {
138138
(program: Program) => Date.now() < Date.parse(program.datetimeRegistrationEnds)
139139
);
140140
this.programs.set(resultPrograms.slice(0, 3));
141-
142-
console.log(this.programs().find(prog => prog.isUserMember));
143141
this.tryShowRegisteredProgramModal();
144142
},
145143
});

projects/social_platform/src/app/office/program/detail/list/list.component.scss

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
grid-template-columns: 8fr 2fr;
77
gap: 10px;
88
padding-bottom: 100px;
9+
max-width: 1280px;
10+
margin: 0 auto;
911

1012
&__outlet {
1113
display: flex;
@@ -58,6 +60,7 @@
5860

5961
&__left {
6062
width: 100%;
63+
position: relative;
6164
}
6265

6366
&__export {
@@ -78,8 +81,12 @@
7881

7982
&__tooltip {
8083
position: fixed;
81-
right: 320px;
82-
bottom: 30px;
84+
bottom: 24px;
85+
right: calc(
86+
(100vw - 1080px) / 2
87+
);
88+
89+
z-index: 30;
8390
}
8491
}
8592

projects/social_platform/src/app/office/projects/edit/shared/project-team-step/project-team-step.component.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,19 @@
6868

6969
&__no-items {
7070
position: absolute;
71-
bottom: 0%;
71+
bottom: -50%;
7272
left: 50%;
73+
transform: translateY(-50%);
7374
}
7475

7576
&__team {
77+
position: relative;
78+
7679
&-tooltip {
77-
position: fixed;
78-
right: 320px;
79-
bottom: 30px;
80+
position: absolute;
81+
right: 0;
82+
bottom: 0;
83+
transform: translateY(calc(var(--app-height) * 0.47));
8084
}
8185
}
8286
}

0 commit comments

Comments
 (0)