fix: improve system info metadata display

This commit is contained in:
tianma-if committed 2026-07-24 17:46:28 +08:00
1 parent 94d4d3454e
commit 1432a032ff
2 files changed
+9 -2

No files matched your search

@@ -200,7 +200,7 @@ export const SystemInfoCard = () => {
{infoItems.map((item) => (
<div key={item.label} className="min-w-0 border-b border-slate-200 px-2 py-2.5 sm:px-3">
<dt className="truncate text-[11px] font-semibold uppercase text-slate-400">{item.label}</dt>
<dd className="mt-0.5 truncate font-mono text-xs font-semibold text-slate-800" title={item.value}>
<dd className="mt-0.5 break-words font-mono text-xs font-semibold leading-5 text-slate-800" title={item.value}>
{item.value}
</dd>
</div>
+8 -1
View File
@@ -39,7 +39,14 @@ const readLatestReleaseCommitTimestamp = () => {
const releaseTag = execSync('git describe --tags --abbrev=0 --match "v[0-9]*.[0-9]*.[0-9]*" HEAD', { encoding: "utf8" }).trim();
return execSync(`git log -1 --format=%cI ${releaseTag}`, { encoding: "utf8" }).trim();
} catch {
return "";
// Workers Builds may check out the source without fetching tags. The
// package version is updated in the release-preparation commit, so its
// timestamp is the best local fallback for self-hosted builds.
try {
return execSync("git log -1 --format=%cI -- package.json", { encoding: "utf8" }).trim();
} catch {
return "";
}
}
};