diff options
| author | tusooa <tusooa@kazv.moe> | 2022-11-08 00:37:22 -0500 |
|---|---|---|
| committer | tusooa <tusooa@kazv.moe> | 2022-11-08 00:37:22 -0500 |
| commit | a34bea75a808de9841f616896ebb630972475707 (patch) | |
| tree | 9f836f6c110c573d39f944171eb1726637209af5 | |
| parent | 771933183be07d84f06103338f8b6b7c4ed282da (diff) | |
Handle properly 2-col and 3-col desktop notifications
| -rw-r--r-- | src/App.vue | 2 | ||||
| -rw-r--r-- | src/components/notifications/notifications.vue | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/App.vue b/src/App.vue index 12b4f61b..8dad8ce9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -30,7 +30,7 @@ <instance-specific-panel v-if="showInstanceSpecificPanel" /> <features-panel v-if="!currentUser && showFeaturesPanel" /> <who-to-follow-panel v-if="currentUser && suggestionsEnabled" /> - <aside id="notifs-sidebar" /> + <div id="notifs-sidebar" /> </template> </div> <main diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue index f9c90a7e..7ed419d1 100644 --- a/src/components/notifications/notifications.vue +++ b/src/components/notifications/notifications.vue @@ -3,7 +3,8 @@ :disabled="minimalMode || disableTeleport" :to="teleportTarget" > - <div + <component + :is="noHeading ? 'div' : 'aside'" ref="root" :class="{ minimal: minimalMode }" class="Notifications" @@ -88,7 +89,7 @@ </div> </div> </div> - </div> + </component> </teleport> </template> |
