Mobile: notification panel fits the screen (override inline JS positioning)
toggleNotifPanel positions the panel inline from the bell's rect (panel.style. right/bottom). The bell isn't flush to the right edge on mobile, so that inline right offset + near-full-width pushed the panel off-screen left. The existing mobile rule set right:12px without !important, so it lost to the inline style. Now anchor both sides with !important (left+right+width:auto) so it always fits.
This commit is contained in:
parent
982653798f
commit
5373f8540b
1 changed files with 12 additions and 7 deletions
|
|
@ -3075,10 +3075,14 @@
|
|||
|
||||
/* Notification panel */
|
||||
.notif-panel {
|
||||
width: calc(100vw - 24px);
|
||||
max-width: 100%;
|
||||
right: 12px;
|
||||
bottom: 62px;
|
||||
/* JS positions this inline from the bell's rect (right/bottom), which on
|
||||
mobile pushes it off-screen (the bell isn't flush right). Override the
|
||||
inline styles with !important and anchor both sides so it always fits. */
|
||||
left: 12px !important;
|
||||
right: 12px !important;
|
||||
width: auto !important;
|
||||
max-width: none !important;
|
||||
bottom: 62px !important;
|
||||
max-height: 55vh;
|
||||
border-radius: 14px;
|
||||
}
|
||||
|
|
@ -3186,9 +3190,10 @@
|
|||
}
|
||||
|
||||
.notif-panel {
|
||||
right: 8px;
|
||||
width: calc(100vw - 16px);
|
||||
bottom: 54px;
|
||||
left: 8px !important;
|
||||
right: 8px !important;
|
||||
width: auto !important;
|
||||
bottom: 54px !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue