滚动条样式修改

master
toesbieya 6 years ago
parent 29ab589a96
commit 78f9afce89
  1. 6
      vue/src/asset/style/index.scss
  2. 4
      vue/src/layout/component/Sidebar/style.scss
  3. 4
      vue/src/layout/component/TagsView/index.vue

@ -44,8 +44,9 @@ a:hover {
} }
//非移动端的滚动条样式修改 //非移动端的滚动条样式修改
@media (min-width: 500px) { @media (min-width: 768px) {
::-webkit-scrollbar { .scroll-container {
&::-webkit-scrollbar {
width: 6px; width: 6px;
&:horizontal { &:horizontal {
@ -63,6 +64,7 @@ a:hover {
} }
} }
} }
}
.clearfix { .clearfix {
@include clearfix; @include clearfix;

@ -74,6 +74,10 @@ $iconSize: 16px;
.el-scrollbar { .el-scrollbar {
flex: 1; flex: 1;
&__wrap{
overflow-x: hidden;
}
} }
} }

@ -8,8 +8,8 @@
:class="{'tags-view-item': true, active: isActive(tag)}" :class="{'tags-view-item': true, active: isActive(tag)}"
:to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }" :to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }"
tag="div" tag="div"
@contextmenu.prevent.stop.native="e => openMenu(tag, e)" @contextmenu.prevent.native="e => openMenu(tag, e)"
@dblclick.prevent.stop.native="() => closeSelectedTag(tag)" @dblclick.prevent.native="() => closeSelectedTag(tag)"
> >
{{ tag.title }} {{ tag.title }}
<i v-if="!isAffix(tag)" class="el-icon-close" @click.prevent.stop="() => closeSelectedTag(tag)"/> <i v-if="!isAffix(tag)" class="el-icon-close" @click.prevent.stop="() => closeSelectedTag(tag)"/>

Loading…
Cancel
Save