fix: sidebar issues

This commit is contained in:
IMB11 2025-07-31 13:25:21 +01:00
parent d7ea034963
commit 17c08ecd44
2 changed files with 15 additions and 1 deletions

View File

@ -657,7 +657,7 @@ function handleAuxClick(e) {
</div>
</div>
<URLConfirmModal ref="urlModal" />
<NotificationPanel />
<NotificationPanel has-sidebar />
<ErrorModal ref="errorModal" />
<ModInstallModal ref="modInstallModal" />
<IncompatibilityWarningModal ref="incompatibilityWarningModal" />

View File

@ -5,6 +5,7 @@
'intercom-present': isIntercomPresent,
'location-left': notificationLocation === 'left',
'location-right': notificationLocation === 'right',
'has-sidebar': hasSidebar,
}"
>
<transition-group name="notifs">
@ -134,6 +135,15 @@ onMounted(() => {
observer.disconnect()
})
})
withDefaults(
defineProps<{
hasSidebar: boolean
}>(),
{
hasSidebar: false,
},
)
</script>
<style lang="scss" scoped>
@ -145,6 +155,10 @@ onMounted(() => {
&.location-right {
right: 1.5rem;
&.has-sidebar {
right: 325px;
}
}
&.location-left {