Commit 87832941 authored by rockyl's avatar rockyl

修复素材面板滚动的问题

parent 13404bc7
...@@ -22,142 +22,142 @@ ...@@ -22,142 +22,142 @@
.container{ .container{
display: flex; display: flex;
flex: 1; flex: 1;
} height: 0;
.properties{ .properties{
width: 30%; width: 30%;
padding: 3px; padding: 3px;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
color: $--color-text-primary; color: $--color-text-primary;
border-right: 1px solid $--border-color-base; border-right: 1px solid $--border-color-base;
.item{ .item{
border-bottom: 1px solid $--border-color-base; border-bottom: 1px solid $--border-color-base;
} }
p{
word-break: break-all;
margin: 0;
}
.name{
font-size: 16px;
line-height: 22px;
width: 100%;
}
.ext{
color: $--color-text-regular;
}
}
.file-list {
display: flex;
flex: 1;
flex-direction: row;
flex-wrap: wrap;
.file-item {
width: 60px;
padding: 5px;
color: $--color-text-regular;
&:hover {
& > .icon > .operate-bar {
display: block;
}
& > .name > .full-name { p{
display: block; word-break: break-all;
} margin: 0;
} }
.icon { .name{
font-size: 16px;
line-height: 22px;
width: 100%; width: 100%;
height: 60px; }
display: flex; .ext{
justify-content: center; color: $--color-text-regular;
align-items: center; }
position: relative;
.thumbnail {
max-width: 60px;
max-height: 60px;
}
.file-icon { }
font-size: 60px;
}
.operate-bar { .assets-scrollbar {
display: none; flex: 1;
position: absolute; .file-list {
right: 1px; display: flex;
bottom: 1px; flex: 1;
flex-direction: row;
flex-wrap: wrap;
.file-item {
width: 60px;
padding: 5px;
color: $--color-text-regular;
&:hover {
& > .icon > .operate-bar {
display: block;
}
& > .name > .full-name {
display: block;
}
}
.el-button { .icon {
padding: 2px; width: 100%;
margin-left: 2px; height: 60px;
display: flex;
justify-content: center;
align-items: center;
position: relative;
.thumbnail {
max-width: 60px;
max-height: 60px;
}
.file-icon {
font-size: 60px;
}
.operate-bar {
display: none;
position: absolute;
right: 1px;
bottom: 1px;
.el-button {
padding: 2px;
margin-left: 2px;
}
}
} }
}
}
.name { .name {
text-align: center; text-align: center;
font-size: 12px; font-size: 12px;
position: relative; position: relative;
margin-top: 2px; margin-top: 2px;
span { span {
word-break: break-all; word-break: break-all;
overflow:hidden; overflow:hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display:-webkit-box; display:-webkit-box;
-webkit-line-clamp:2; -webkit-line-clamp:2;
-webkit-box-orient:vertical; -webkit-box-orient:vertical;
}
.full-name {
display: none;
position: absolute;
top: 0;
left: 0;
background-color: $--color-text-secondary;
color: $--color-white;
border-radius: 5px;
padding: 2px;
z-index: 2;
width: 95%;
line-height: 17px;
}
}
} }
.full-name { .file-uploader {
display: none; width: 60px;
position: absolute; height: 60px;
top: 0; margin: 4px;
left: 0; border: 1px dashed $--color-text-secondary;
background-color: $--color-text-secondary; border-radius: 6px;
color: $--color-white; cursor: pointer;
border-radius: 5px; position: relative;
padding: 2px; overflow: hidden;
z-index: 2;
width: 95%; .file-uploader-icon {
line-height: 17px; font-size: 28px;
color: $--color-text-regular;
width: 60px;
height: 60px;
line-height: 60px;
text-align: center;
}
} }
} }
} }
.file-uploader {
width: 60px;
height: 60px;
margin: 4px;
border: 1px dashed $--color-text-secondary;
border-radius: 6px;
cursor: pointer;
position: relative;
overflow: hidden;
.file-uploader-icon {
font-size: 28px;
color: $--color-text-regular;
width: 60px;
height: 60px;
line-height: 60px;
text-align: center;
}
}
}
.assets-scrollbar {
width: 100%;
flex: 1;
} }
.scrollbar-view{ .scrollbar-view{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment