Commit fdf9d0b
authored
Support overflowing content like drop-shadows (#678)
Changing the default
[overflow](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/overflow)
styles set by this library as shown below is enough to allow e.g.
drop-shadows and other overflowing styles.
<table><thead><tr><th>Before</th><th>After</th></tr></thead><tbody><tr><td>
```html
<!-- ⚛️ Group -->
<div data-group>
<!-- ⚛️ Panel -->
<div
data-panel
style="overflow: hidden"
>
<div>
<!-- The stuff you render -->
</div>
</div>
</div>
```
</td><td>
```html
<!-- ⚛️ Group -->
<div data-group>
<!-- ⚛️ Panel -->
<div
data-panel
style="overflow: visible"
>
<div style="overflow: auto">
<!-- The stuff you render -->
</div>
</div>
</div>
```
</td></tr></tbody></table>
Is this a change that users of this library would like? Will it somehow
break or affect existing panel styles in an unexpected way?
Try this out for yourself:
```sh
npm install react-resizable-panels@alpha
```
I'd welcome feedback on the API and the documentation
([here](https://react-resizable-panels-git-discus-84d2c9-brian-vaughns-projects.vercel.app/examples/overflow)).
In support of discussion #674 and issues #628 and #5321 parent f7ed878 commit fdf9d0b
28 files changed
Lines changed: 233 additions & 19 deletions
File tree
- integrations/tests
- src/components
- tests
- lib/components/panel
- public/generated/examples
- src
- components/styled-panels
- routes
- examples
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | | - | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
165 | | - | |
| 163 | + | |
166 | 164 | | |
167 | 165 | | |
168 | 166 | | |
| |||
173 | 171 | | |
174 | 172 | | |
175 | 173 | | |
| 174 | + | |
176 | 175 | | |
177 | 176 | | |
178 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments