Spaces:
Running
Running
fix: improve rank badge and crown positioning to avoid overlaps
Browse files- src/views/LiveView.vue +32 -15
src/views/LiveView.vue
CHANGED
|
@@ -350,33 +350,50 @@ watch(
|
|
| 350 |
/* Rank / Crown */
|
| 351 |
.rank {
|
| 352 |
position: absolute;
|
| 353 |
-
top:
|
| 354 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 355 |
font-weight: 900;
|
| 356 |
-
font-size:
|
| 357 |
-
color:
|
|
|
|
|
|
|
| 358 |
letter-spacing: .04em;
|
| 359 |
-
z-index:
|
|
|
|
| 360 |
}
|
| 361 |
.rank.bh-badge {
|
| 362 |
-
font-size:
|
| 363 |
-
background: rgba(15,23,42,.
|
| 364 |
-
padding:
|
| 365 |
border-radius: 6px;
|
| 366 |
color: #4b5563;
|
| 367 |
-
|
| 368 |
-
|
|
|
|
|
|
|
| 369 |
}
|
| 370 |
.crown {
|
| 371 |
position: absolute;
|
| 372 |
-
top:
|
| 373 |
-
right:
|
| 374 |
-
font-size:
|
| 375 |
-
filter: drop-shadow(0
|
|
|
|
| 376 |
}
|
| 377 |
|
| 378 |
/* Head */
|
| 379 |
-
.head {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 380 |
.logo { width: 40px; height: 40px; border-radius: 10px; background: #f3f4f6; display: grid; place-items: center; overflow: hidden; border: 1px solid #E7ECF3; }
|
| 381 |
.logo img { width: 100%; height: 100%; object-fit: contain; }
|
| 382 |
.logo__fallback { width: 60%; height: 60%; border-radius: 6px; background: #e5e7eb; }
|
|
|
|
| 350 |
/* Rank / Crown */
|
| 351 |
.rank {
|
| 352 |
position: absolute;
|
| 353 |
+
top: 10px;
|
| 354 |
+
left: 10px;
|
| 355 |
+
width: 28px;
|
| 356 |
+
height: 28px;
|
| 357 |
+
display: flex;
|
| 358 |
+
align-items: center;
|
| 359 |
+
justify-content: center;
|
| 360 |
font-weight: 900;
|
| 361 |
+
font-size: 16px;
|
| 362 |
+
color: #ffffff;
|
| 363 |
+
background: rgba(15,23,42,.75);
|
| 364 |
+
border-radius: 8px;
|
| 365 |
letter-spacing: .04em;
|
| 366 |
+
z-index: 2;
|
| 367 |
+
box-shadow: 0 2px 4px rgba(0,0,0,.1);
|
| 368 |
}
|
| 369 |
.rank.bh-badge {
|
| 370 |
+
font-size: 11px;
|
| 371 |
+
background: rgba(15,23,42,.08);
|
| 372 |
+
padding: 4px 8px;
|
| 373 |
border-radius: 6px;
|
| 374 |
color: #4b5563;
|
| 375 |
+
width: auto;
|
| 376 |
+
height: auto;
|
| 377 |
+
font-weight: 700;
|
| 378 |
+
box-shadow: none;
|
| 379 |
}
|
| 380 |
.crown {
|
| 381 |
position: absolute;
|
| 382 |
+
top: 10px;
|
| 383 |
+
right: 10px;
|
| 384 |
+
font-size: 22px;
|
| 385 |
+
filter: drop-shadow(0 2px 3px rgba(0,0,0,.2));
|
| 386 |
+
z-index: 2;
|
| 387 |
}
|
| 388 |
|
| 389 |
/* Head */
|
| 390 |
+
.head {
|
| 391 |
+
display: grid;
|
| 392 |
+
grid-template-columns: 40px minmax(0,1fr);
|
| 393 |
+
align-items: center;
|
| 394 |
+
gap: 10px;
|
| 395 |
+
margin-top: 32px;
|
| 396 |
+
}
|
| 397 |
.logo { width: 40px; height: 40px; border-radius: 10px; background: #f3f4f6; display: grid; place-items: center; overflow: hidden; border: 1px solid #E7ECF3; }
|
| 398 |
.logo img { width: 100%; height: 100%; object-fit: contain; }
|
| 399 |
.logo__fallback { width: 60%; height: 60%; border-radius: 6px; background: #e5e7eb; }
|