v0.6.4: show match id on match cards.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1871,6 +1871,10 @@ function buildMatchCard(heroKey, row, opts = {}) {
|
||||
const links = document.createElement("span");
|
||||
links.className = "match-links";
|
||||
if (row.match_id) {
|
||||
const matchId = document.createElement("span");
|
||||
matchId.className = "match-id";
|
||||
matchId.textContent = String(row.match_id);
|
||||
links.appendChild(matchId);
|
||||
const matchLink = document.createElement("a");
|
||||
matchLink.className = "match-opendota";
|
||||
matchLink.href = `https://www.dotabuff.com/matches/${row.match_id}`;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Local defaults; production export overwrites via export_relations_site.py. */
|
||||
var SITE_VERSION = "0.6.3";
|
||||
var SITE_VERSION = "0.6.4";
|
||||
var SITE_ORIGIN = "";
|
||||
var ABILITY_VIDEO_BASE = "";
|
||||
var STATIC_ASSET_BASE = "";
|
||||
|
||||
@@ -43,8 +43,8 @@
|
||||
}
|
||||
</script>
|
||||
<link rel="icon" href="/ui-icon/dota2_logo.png" type="image/png" />
|
||||
<link rel="stylesheet" href="/style.css?v=0.6.3" />
|
||||
<script src="/mobile-gate.js?v=0.6.3"></script>
|
||||
<link rel="stylesheet" href="/style.css?v=0.6.4" />
|
||||
<script src="/mobile-gate.js?v=0.6.4"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 class="sr-only">DOTA2 上分帝</h1>
|
||||
@@ -233,8 +233,8 @@
|
||||
</div>
|
||||
<footer class="heroes-site-foot" id="heroes-site-foot" aria-hidden="true"></footer>
|
||||
|
||||
<script src="/config.js?v=0.6.3"></script>
|
||||
<script src="/router.js?v=0.6.3"></script>
|
||||
<script src="/app.js?v=0.6.3"></script>
|
||||
<script src="/config.js?v=0.6.4"></script>
|
||||
<script src="/router.js?v=0.6.4"></script>
|
||||
<script src="/app.js?v=0.6.4"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -2191,6 +2191,12 @@ body.detail-drawer-open {
|
||||
white-space: nowrap;
|
||||
color: rgba(190, 205, 225, 0.8);
|
||||
}
|
||||
.match-id {
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-size: 13px;
|
||||
letter-spacing: 0.02em;
|
||||
color: rgba(180, 195, 215, 0.82);
|
||||
}
|
||||
.match-opendota {
|
||||
color: rgba(140, 180, 230, 0.95);
|
||||
text-decoration: none;
|
||||
|
||||
Reference in New Issue
Block a user