Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Added info on when to use the wrapper

Parimal Satyala5dab38e1d15
diff --git a/lookbook/docs/patterns/17-settings-pages.md.erb b/lookbook/docs/patterns/17-settings-pages.md.erb
index 806c0691528..b816757cbaf 100644
--- a/lookbook/docs/patterns/17-settings-pages.md.erb
+++ b/lookbook/docs/patterns/17-settings-pages.md.erb
@@ -2,8 +2,7 @@ Settings pages usually stretch to the full width of the viewport as they tend no
## Settings page base component
-As specified in the documentation for [forms](./forms), we prefer limiting the width of a form for legibility. Because the default
-behaviour of form elements to fill the full width of the container, we wrap forms in a container that limits its available width.
+As specified in the documentation for [forms](./forms), we prefer limiting the width of a form for legibility. Because the default behaviour of form elements to fill the full width of the container, we wrap forms in a container that limits its available width.
Any view component rendering a form should inherit from `AdminSettingsFormComponent`. The template stays unchanged. This
way, the rendered form is wrapped into a container with `680px` max-width.
@@ -25,3 +24,7 @@ end
end
%>
```
+
+As a general rule, only _free-floating_ forms should use this wrapper.
+
+Forms that are contained inside box-components (eg. setting up or editing a File store or an OpenID provider) do not need this wrapper; they can stretch to the full width of the box table they are contained in. Individual elements will of course have their own width setting.
\ No newline at end of file