Skip to content

Commit 51d0327

Browse files
authored
Fix transparent notification dropdown menu on mobile (#143)
* Make notification dropdown cover icons Change `position` and `width` so that, when `notification-dropdown` is active, the dropdown window covers the icons behind the dropdown menu. * Adjust spacing for notification count
1 parent 78c2280 commit 51d0327

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/css/custom.css

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ html[data-theme="dark"] .badge {
156156
background-image: url("/img/rss-mark.svg");
157157
background-size: contain;
158158
content: "";
159-
position: relative;
159+
position: inherit;
160160
width: 24px;
161161
height: 24px;
162162
}
@@ -229,7 +229,7 @@ html[data-theme="dark"] g[class^='label'] text {
229229
height: 20px;
230230
justify-content: center;
231231
position: absolute;
232-
right: -5px;
232+
right: -2px;
233233
top: 2px;
234234
width: 20px;
235235
}
@@ -238,9 +238,10 @@ html[data-theme="dark"] g[class^='label'] text {
238238
background-color: white;
239239
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
240240
border-radius: 4px;
241+
left: 12px;
241242
position: absolute;
242243
top: 38px;
243-
width: 300px;
244+
width: 293px;
244245
z-index: 1000;
245246
}
246247

@@ -274,9 +275,10 @@ html[data-theme="dark"] .notification-dropdown {
274275
border-bottom: 1px solid invert(90%);
275276
border-radius: 4px;
276277
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
278+
left: 12px;
277279
position: absolute;
278280
top: 38px;
279-
width: 300px;
281+
width: 293px;
280282
z-index: 1000;
281283
}
282284

@@ -292,7 +294,7 @@ html[data-theme="dark"] .notification-dropdown {
292294
@media (max-width: 997px) {
293295
.navbar-sidebar .notification-wrapper {
294296
display: flex; /* Make it visible only in the sidebar on mobile */
295-
position: sticky;
297+
position: relative;
296298
}
297299

298300
.notification-count {
@@ -305,7 +307,7 @@ html[data-theme="dark"] .notification-dropdown {
305307
height: 20px;
306308
justify-content: center;
307309
position: relative;
308-
right: 0px;
310+
right: 2px;
309311
top: 2px;
310312
width: 20px;
311313
}

0 commit comments

Comments
 (0)