1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-03-22 16:59:24 -05:00

fix close notifications pop-up

This commit is contained in:
FLY_MC 2025-03-11 16:24:43 +08:00
parent fae03c5b61
commit 4b8abb174a
2 changed files with 6 additions and 0 deletions
packages/frontend/src
pages/settings
ui/_common_

View file

@ -187,6 +187,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<option value="rightTop"><i class="ti ti-align-box-right-top"></i> {{ i18n.ts.rightTop }}</option>
<option value="leftBottom"><i class="ti ti-align-box-left-bottom"></i> {{ i18n.ts.leftBottom }}</option>
<option value="rightBottom"><i class="ti ti-align-box-right-bottom"></i> {{ i18n.ts.rightBottom }}</option>
<option value="close"><i class="ti ti-x"></i> {{ i18n.ts.close }}</option>
</MkRadios>
</MkPreferenceContainer>
</SearchMarker>

View file

@ -21,6 +21,7 @@ SPDX-License-Identifier: AGPL-3.0-only
[$style.notificationsPosition_leftBottom]: prefer.s.notificationPosition === 'leftBottom',
[$style.notificationsPosition_rightTop]: prefer.s.notificationPosition === 'rightTop',
[$style.notificationsPosition_rightBottom]: prefer.s.notificationPosition === 'rightBottom',
[$style.notificationsPosition_close]: prefer.s.notificationPosition === 'close',
[$style.notificationsStackAxis_vertical]: prefer.s.notificationStackAxis === 'vertical',
[$style.notificationsStackAxis_horizontal]: prefer.s.notificationStackAxis === 'horizontal',
}]"
@ -147,6 +148,10 @@ function getPointerEvents() {
right: 0;
}
&.notificationsPosition_close {
display: none;
}
&.notificationsStackAxis_vertical {
width: 250px;