Skip to content

Commit

Permalink
Merge pull request #5900 from nextcloud-libraries/backport/5897/next
Browse files Browse the repository at this point in the history
[next] fix(NcSettingsSection): remove default h2 margin-top
  • Loading branch information
susnux authored Aug 2, 2024
2 parents 23e8b39 + fcb4774 commit 98d0545
Showing 1 changed file with 25 additions and 6 deletions.
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

0 comments on commit 98d0545

Please sign in to comment.