Commit f828b11
[6.x] Max width control for the CP (Expand/Constrain Layout) (#13647)
* Draft an alert component
* Fix icons
* Alert - improve markup
* Alert - tweak alignment
* Alert - message styling
* Alert - Style code snippets
* Alert / Style code snippets - remove unnecessary borders
* Alert / Style code snippets - fix dark mode legibility
* Alert / Style code snippets - improve
* Dashboard demo
* Move the demo to the playground
* Improve realism of demo messages
* Add alert component to the test's expected exports list
* Add Alert to the package export file
* Alert - make code size smaller
* Alert - add storybook component
* Add some rich content examples
* Fix icon
* Add docs
* Add instruction
* Simplify the Alert component to use Vue's slot fallback syntax
* Alerts should work with the Heading and Description components
* Add some demos
* Tweak variations
* Finish documenting using Alerts with Heading/Description components
* heading prop and use heading/description components
* Fix color inconsistencies
* Fix color inconsistencies
* Fix dark icon colors
* Dark mode fix
* Fix inconsistency
* Try a new max-width
* Replace all max-width-5xl with new max-width-page
* Max width toggle prototype
* Make the icons match more
* Hide the toggle width button for smaller screens; it's just noise and doesn't do anything meaningful at that width
* Add a tooltip instead of a title
* Change phrasing
* Improve phrasing
* Improve phrasing
* Fix /cp/collections not responding to the layout toggle control
* Make the layout-width button pulse when it appears
* Reduce max-width-page slightly
* Use a different approach - wip
* Revert "Use a different approach - wip"
This reverts commit 8e3f94d.
* Get this bad boy working
* Add max-w-5xl (maybe?) around lots of things
* Switch to a data-attribute to better separate tailwind classes with custom objects we're using
* Try a max width of 6xl for narrower pages
* Tidy - Add a few comments
* irrelevant
* Tweak layout expand icon animation slightly
* Tweak layout expand icon animation slightly
* Dynamic max width… Only switch to max-w-6xl on larger screens. On smaller screens max-w-6xl feels too wide, but on larger screens max-w-5xl feels to narrow
---------
Co-authored-by: Jason Varga <jason@pixelfear.com>
Co-authored-by: Jack McDade <jack@jackmcdade.com>1 parent ae3f7d0 commit f828b11
49 files changed
Lines changed: 356 additions & 263 deletions
File tree
- resources
- css
- components/fieldtypes
- core
- js
- components
- fieldtypes/replicator
- global-header
- roles
- updater
- user-groups
- composables
- pages
- addons
- blueprints
- collections
- fieldsets
- forms
- globals
- layout
- preferences
- roles
- sites
- taxonomies
- updater
- user-groups
- users
- utilities
- svg/icons
- tests/Antlers/Parser
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
159 | 162 | | |
160 | 163 | | |
161 | 164 | | |
| |||
166 | 169 | | |
167 | 170 | | |
168 | 171 | | |
| 172 | + | |
| 173 | + | |
169 | 174 | | |
170 | 175 | | |
171 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| |||
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
30 | 44 | | |
31 | 45 | | |
32 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments