Skip to content

Commit 74dc9ea

Browse files
committed
add invites badge for control panel
1 parent 100f46c commit 74dc9ea

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

projects/social_platform/src/styles.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
@import "styles/pages/project-detail.scss";
2626

2727
:root {
28-
--app-height: 100%;
28+
--app-height: 100vh;
29+
}
30+
31+
html {
32+
scrollbar-gutter: stable;
2933
}
3034

3135
html,

projects/ui/src/lib/components/layout/profile-control-panel/profile-control-panel.component.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
<div class="attention"></div>
99
}
1010
<i appIcon icon="bell" appWidth="15" appHeight="17" appViewBox="0 0 15 17"></i>
11+
@if (invites.length) {
12+
<div class="control-panel__bell--hasInvites"></div>
13+
}
1114
</div>
1215
</div>
1316
@if (showNotifications) {

projects/ui/src/lib/components/layout/profile-control-panel/profile-control-panel.component.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,18 @@
3131
z-index: 20;
3232
margin-top: 10px;
3333
}
34+
35+
&__bell {
36+
position: relative;
37+
38+
&--hasInvites {
39+
position: absolute;
40+
top: -5%;
41+
left: 0%;
42+
background-color: var(--red);
43+
border-radius: 100%;
44+
width: 6px;
45+
height: 6px;
46+
}
47+
}
3448
}

0 commit comments

Comments
 (0)