Skip to content
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

[next] fix(NcSettingsSection): remove default h2 margin-top #5900

Merged
merged 2 commits into from
Aug 2, 2024
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
31 changes: 25 additions & 6 deletions src/components/NcSettingsSection/NcSettingsSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,30 @@ This component is to be used in the settings section of nextcloud.

```vue
<template>
<NcSettingsSection
name="Two-Factor Authentication"
description="Two-factor authentication can be enforced for all users and specific groups."
doc-url="https://docs.nextcloud.com/server/19/go.php?to=admin-2fa">
<p>Your settings here</p>
</NcSettingsSection>
<div>
<NcSettingsSection name="Two-factor authentication"
description="Two-factor authentication can be enforced for all accounts and specific groups. If they do not have a two-factor provider configured, they will be unable to log into the system."
doc-url="https://docs.nextcloud.com/server/19/go.php?to=admin-2fa">
<NcCheckboxRadioSwitch type="switch">
Enforce two-factor authentication
</NcCheckboxRadioSwitch>
</NcSettingsSection>

<NcSettingsSection name="Server-side encryption"
description="Server-side encryption makes it possible to encrypt files which are uploaded to this server. This comes with limitations like a performance penalty, so enable this only if needed.">
<NcCheckboxRadioSwitch type="switch">
Enable server-side encryption
</NcCheckboxRadioSwitch>
</NcSettingsSection>

<NcSettingsSection name="OAuth 2.0 clients"
description="OAuth 2.0 allows external services to request access to Nextcloud."
doc-url="https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/oauth2.html">

Any content here

</NcSettingsSection>
</div>
</template>
```
</docs>
Expand Down Expand Up @@ -110,6 +128,7 @@ $sectionMargin: calc(var(--default-grid-baseline) * 7);
align-items: center;
justify-content: center;
max-width: $maxWidth;
margin-top: 0; // Remove default heading margin
}

&__info {
Expand Down
Loading