Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/components/NcGuestContent/NcGuestContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
<docs>
### General description

This components provides a wrapper around a guest page content.
This components provides a wrapper around guest page content.
It should be used as the main wrapper for public pages, similar to `NcContent`.

It can't be used multiple times on the same page.

### Usage

Expand All @@ -49,6 +52,12 @@ This components provides a wrapper around a guest page content.
*/
export default {
name: 'NcGuestContent',
mounted() {
document.getElementById('content').classList.add('nc-guest-content')
},
destroyed() {
document.getElementById('content').classList.remove('nc-guest-content')
},
}
</script>

Expand All @@ -66,7 +75,7 @@ export default {
</style>

<style lang="scss">
#content {
#content.nc-guest-content {
// Enable scrolling
overflow: auto;

Expand Down