feat(application): add application banner image and enhance card layouts

This commit is contained in:
pnoker
2021-10-18 19:48:59 +08:00
parent 42ae3ef823
commit cf9e99b350
3 changed files with 23 additions and 3 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

+14 -2
View File
@@ -11,7 +11,7 @@
</div>
<div class="thing-footer">
<div class="thing-footer-title">
<span>{{name}}</span>
<span class="thing-body-content-application-name">{{name}}</span>
</div>
</div>
</div>
@@ -31,7 +31,7 @@
},
icon: {
type: String,
default: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'
default: 'images/app/application.jpg'
},
url: {
type: String,
@@ -68,6 +68,18 @@
.thing-body-content-application-icon {
width: 120px;
cursor: pointer;
.el-avatar {
background: transparent;
}
}
.thing-body-content-application-name {
display: block;
width: 120px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
</style>
+9 -1
View File
@@ -11,7 +11,7 @@
</div>
<div class="thing-footer">
<div class="thing-footer-title">
<span>{{name}}</span>
<span class="thing-body-content-dashboard-name">{{name}}</span>
</div>
</div>
</div>
@@ -77,4 +77,12 @@
max-width: 280px;
}
}
.thing-body-content-dashboard-name {
display: block;
width: 280px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
</style>