提交 ec89305d 作者: ZhangLingKun

功能:首页tab组件禁止滚动

上级 1353d9fa
...@@ -228,7 +228,7 @@ const HomeNewWrap = styled.div` ...@@ -228,7 +228,7 @@ const HomeNewWrap = styled.div`
width: 100%; width: 100%;
height: 12rem; height: 12rem;
overflow: hidden; overflow: hidden;
overflow-y: auto; //overflow-y: auto;
box-sizing: border-box; box-sizing: border-box;
padding: 0 1.2rem; padding: 0 1.2rem;
&::-webkit-scrollbar-thumb { &::-webkit-scrollbar-thumb {
......
...@@ -94,8 +94,8 @@ const TabViewWrap = styled.div` ...@@ -94,8 +94,8 @@ const TabViewWrap = styled.div`
position: relative; position: relative;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
margin-bottom: 0.68rem; margin-bottom: 0.48rem;
padding-bottom: 0.68rem; padding-bottom: 0.48rem;
border-bottom: 0.02rem solid #ededed; border-bottom: 0.02rem solid #ededed;
&:last-child { &:last-child {
border: none; border: none;
...@@ -123,6 +123,7 @@ const TabViewWrap = styled.div` ...@@ -123,6 +123,7 @@ const TabViewWrap = styled.div`
position: relative; position: relative;
flex-wrap: wrap; flex-wrap: wrap;
max-width: calc(100% - 6rem); max-width: calc(100% - 6rem);
transform: translateY(0.86px);
//height: 1.58rem; //height: 1.58rem;
//overflow: hidden; //overflow: hidden;
//margin-bottom: 1rem; //margin-bottom: 1rem;
......
...@@ -81,7 +81,7 @@ export const HomeTabWrap = styled.div` ...@@ -81,7 +81,7 @@ export const HomeTabWrap = styled.div`
box-sizing: border-box; box-sizing: border-box;
overflow: hidden; overflow: hidden;
// 超出滚动 // 超出滚动
overflow-y: auto; //overflow-y: auto;
border: 0.04rem solid #e3e3e3; border: 0.04rem solid #e3e3e3;
&::-webkit-scrollbar-thumb { &::-webkit-scrollbar-thumb {
background: #d9d9d9; background: #d9d9d9;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论