Skip to content

Commit b3b1cd2

Browse files
authored
fix: prevent vertical scrolling on tab fields (#7729)
## Description Prevents tabs fields from displaying vertical scrollbars in certain cases with different viewports/zoom levels. - [x] I have read and understand the [CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md) document in this repository. ## Type of change <!-- Please delete options that are not relevant. --> - [x] Bug fix (non-breaking change which fixes an issue) ## Checklist: - [ ] I have added tests that prove my fix is effective or that my feature works - [x] Existing test suite passes locally with my changes - [ ] I have made corresponding changes to the documentation
1 parent d67f674 commit b3b1cd2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/ui/src/fields/Tabs/index.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
}
3030

3131
&__tabs-wrap {
32-
overflow: auto;
32+
overflow-x: auto;
33+
overflow-y: hidden;
3334
margin-bottom: $baseline;
3435
}
3536

0 commit comments

Comments
 (0)