diff --git a/src/components/Table/CardTable/index.vue b/src/components/Table/CardTable/index.vue index 9915141b7..150dea42e 100644 --- a/src/components/Table/CardTable/index.vue +++ b/src/components/Table/CardTable/index.vue @@ -6,11 +6,11 @@ :table-url="tableUrl" v-bind="headerActions" /> - - + + - + .the-row { + flex-wrap: wrap; + width: 100%; margin-top: 15px; max-width: 1600px; text-align: center; @@ -247,12 +249,13 @@ export default { ::v-deep .el-card__body { height: 100%; + padding: unset !important; .el-row { display: flex; flex-wrap: nowrap; margin-top: 0; - height: 100%; + height: 190px; .image { display: flex; @@ -275,6 +278,7 @@ export default { display: flex; flex-direction: column; align-items: flex-start; + padding: 10px; .one-line { display: flex; @@ -296,15 +300,13 @@ export default { .comment { display: -webkit-box; - height: 120px; font-size: 12px; padding: 10px 0; cursor: pointer; overflow: hidden; - -webkit-line-clamp: 4; - -webkit-box-flex: 1; + text-overflow: ellipsis; + -webkit-line-clamp: 2; -webkit-box-orient: vertical; - text-align: left; } .tag-zone { @@ -312,6 +314,7 @@ export default { height: 30%; align-items: center; cursor: pointer; + margin-top: 70px; } } }