Skip to content

Commit fef17a7

Browse files
authored
Merge pull request #8677 from nextcloud-libraries/fix/noid/guest-content-wrapper
fix(NcGuestContent): migrate style assignment fully to CSS
2 parents 90f93d4 + 94fe6fe commit fef17a7

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

src/components/NcGuestContent/NcGuestContent.vue

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,9 @@ It can't be used multiple times on the same page.
2929
<script setup lang="ts">
3030
import type { Slot } from 'vue'
3131
32-
import { onMounted, onUnmounted } from 'vue'
33-
3432
defineSlots<{
3533
default?: Slot
3634
}>()
37-
38-
onMounted(() => {
39-
document.getElementById('content')!.classList.add('nc-guest-content')
40-
})
41-
42-
onUnmounted(() => {
43-
document.getElementById('content')!.classList.remove('nc-guest-content')
44-
})
4535
</script>
4636

4737
<template>
@@ -64,7 +54,7 @@ onUnmounted(() => {
6454
</style>
6555

6656
<style lang="scss">
67-
#content.nc-guest-content {
57+
#content:has(#guest-content-vue) {
6858
// Enable scrolling
6959
overflow: auto;
7060

0 commit comments

Comments
 (0)