-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add guest content component #3369
Conversation
Sounds good! |
Why do we need a new component https://github.com/nextcloud/nextcloud-vue/blob/4fc02b3b13df82e9a6d49713dd2055c960f4e8a4/src/components/NcGuestContent/NcGuestContent.vue for this issue? |
Because there is no such component at the moment. |
Acute need for the component is triggered by nextcloud/mail#7430. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks fine, i didnt test it with an app
@JuliaKirschenheuter is there any issue with the current solution? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea!
However, it doesn't work out of the box with components inside our regular content container. Have a look at an example from Calendar:
At the top
Scrolled a bit down
IMO, NcGuestContent
needs at least margin: 0 auto
to center it and maybe height: fit-content
to make it grow.
EDIT: The outer content container might also need changes to allow scrolling and prevent clipping at the bottom (taken from calendar/src/views/Appointments/Booking.vue
):
#content {
// Enable scrolling
overflow: auto;
// Fix box being cutoff at the bottom
margin-bottom: 0;
height: calc(var(--body-height) + var(--body-container-margin));
}
While you already have your fancy setup to check this 😈, could you push those styles to my branch? |
Sure thing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Christoph Wurst <[email protected]>
9cf71ae
to
2e9bc89
Compare
} | ||
</style> | ||
|
||
<style lang="scss"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For pages like
This could be used for login, login flow, 2FA, OAuth redirect pages, etc.
In a future version I could also image that there is a "fullscreen" or size prop to make the container expand to the available width/height.