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:
Ferdinand Thiessen 2025-12-12 21:51:04 +01:00 committed by Andy Scherzinger
parent da76b7a100
commit aaeddcee21

View file

@ -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>