Spaces:
Running
Running
Jimin Huang
commited on
Commit
·
50c8fe7
1
Parent(s):
6b5d13b
Change settings
Browse files- src/views/LiveView.vue +14 -16
src/views/LiveView.vue
CHANGED
|
@@ -40,14 +40,15 @@
|
|
| 40 |
|
| 41 |
<!-- TOP ROW: avatar + titles + primary metric -->
|
| 42 |
<div class="card2__row card2__row--top">
|
| 43 |
-
<div class="
|
| 44 |
-
<
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
|
|
|
| 51 |
</div>
|
| 52 |
|
| 53 |
<div class="metrics">
|
|
@@ -354,16 +355,13 @@ watch(
|
|
| 354 |
.avatar__fallback { width: 60%; height: 60%; border-radius: 999px; background: #E5E7EB; }
|
| 355 |
|
| 356 |
/* titles */
|
|
|
|
| 357 |
.title {
|
| 358 |
-
font-weight: 800;
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
}
|
| 362 |
-
.subtitle {
|
| 363 |
-
font-size: 0.85rem;
|
| 364 |
-
color: #64748B;
|
| 365 |
}
|
| 366 |
-
.
|
| 367 |
|
| 368 |
/* primary metric */
|
| 369 |
.primary { text-align: right; }
|
|
|
|
| 40 |
|
| 41 |
<!-- TOP ROW: avatar + titles + primary metric -->
|
| 42 |
<div class="card2__row card2__row--top">
|
| 43 |
+
<div class="info">
|
| 44 |
+
<div class="avatar">
|
| 45 |
+
<img v-if="c.logo" :src="c.logo" alt="" />
|
| 46 |
+
<div v-else class="avatar__fallback" aria-hidden="true"></div>
|
| 47 |
+
</div>
|
| 48 |
+
<div class="titles">
|
| 49 |
+
<div class="title" :title="c.title">{{ c.title }}</div>
|
| 50 |
+
<div class="subtitle" :title="c.subtitle">{{ c.subtitle }}</div>
|
| 51 |
+
</div>
|
| 52 |
</div>
|
| 53 |
|
| 54 |
<div class="metrics">
|
|
|
|
| 355 |
.avatar__fallback { width: 60%; height: 60%; border-radius: 999px; background: #E5E7EB; }
|
| 356 |
|
| 357 |
/* titles */
|
| 358 |
+
.titles { min-width: 0; display: grid; gap: 2px; }
|
| 359 |
.title {
|
| 360 |
+
font-weight: 800; color: #0F172A; line-height: 1.15;
|
| 361 |
+
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
|
| 362 |
+
overflow: hidden; font-size: clamp(16px, 1.4vw, 18px);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 363 |
}
|
| 364 |
+
.subtitle { font-size: 12px; color: #5B6476; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
| 365 |
|
| 366 |
/* primary metric */
|
| 367 |
.primary { text-align: right; }
|