fix(layout): overflow on horizontal direction

This commit is contained in:
07akioni 2021-04-20 14:47:30 +08:00
parent 07556d80b1
commit c44979eb94
3 changed files with 15 additions and 6 deletions

View File

@ -1,5 +1,11 @@
# CHANGELOG
## Pending
### Fixes
- Fix `n-layout` overflow on horizontal direction.
## 2.7.1
# Feats

View File

@ -1,8 +1,14 @@
# CHANGELOG
## Pending
### Fixes
- Fix `n-layout` 横向溢出的问题
## 2.7.1
# Feats
### Feats
- `n-checkbox` 增加 `focusable` 属性
- `n-cascader` 增加 `action` slot

View File

@ -10,17 +10,14 @@ export default cB('layout', `
position: relative;
z-index: auto;
flex: auto;
overflow-x: hidden;
transition:
margin-left .3s var(--bezier),
background-color .3s var(--bezier),
color .3s var(--bezier);
`, [
cE('content', `
box-sizing: border-box;
overflow-x: hidden;
`),
cM('has-sider', [
c('& >', [
c('>', [
cE('content', `
display: flex;
flex-wrap: nowrap;