Skip to content

Commit 585258b

Browse files
authored
Merge pull request #12501 from nextcloud/chore/document-vue3-template
chore(developer): Document template changes for Nextcloud 31
2 parents 6bc5d2c + c29e92a commit 585258b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_31.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ General
1010
Front-end changes
1111
-----------------
1212

13+
User-, guest-, and public-template layout
14+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15+
16+
The main layout for all apps (the user, guest and public template) has been changed,
17+
the main content is no longer rendered within a ``<main>`` element with the class ``content`` but in a ``div`` element with the class ``content``.
18+
The reason for this is to allow writing Vue 3 based apps which would incorrectly render two stacked ``main``-elements otherwise.
19+
20+
For Vue 2 apps this **does not change anything**.
21+
But if you just use vanilla templates or other frameworks this changes the page layout and might require adjustments.
22+
We recommend you to wrap your content in a custom ``main``-element if you use non or not Vue as the framework.
23+
1324
Logical position CSS rules
1425
^^^^^^^^^^^^^^^^^^^^^^^^^^
1526

0 commit comments

Comments
 (0)