mirror of
https://github.com/nextcloud/server.git
synced 2026-02-28 12:30:40 -05:00
fix(federatedfilesharing): pre must not be a child of p
Fix the problem reported: > [plugin vite:vue] apps/federatedfilesharing/src/components/PersonalSettings.vue: <pre> cannot be child of <p>, according to HTML specifications. > This can cause hydration errors or potentially disrupt future functionality. `p` only allows inline elements, but pre is none. We either need to use `div` instead of `p` or `code` instead of `pre`. But in this case we want a block of code, so we use `div` and inner `<pre><code>`. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> [skip ci]
This commit is contained in:
parent
da76b7a100
commit
aaeddcee21
1 changed files with 4 additions and 4 deletions
|
|
@ -68,11 +68,11 @@
|
|||
</a>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{ t('federatedfilesharing', 'HTML Code:') }}
|
||||
<div>
|
||||
<p>{{ t('federatedfilesharing', 'HTML Code:') }}</p>
|
||||
<br>
|
||||
<pre>{{ htmlCode }}</pre>
|
||||
</p>
|
||||
<pre><code>{{ htmlCode }}</code></pre>
|
||||
</div>
|
||||
</template>
|
||||
</NcSettingsSection>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Reference in a new issue