client/about dialog: refactor

This commit is contained in:
Adorian Doran
2026-04-18 10:47:20 +03:00
parent 3ce2af9abe
commit 683814c9d2
2 changed files with 25 additions and 25 deletions

View File

@@ -82,38 +82,34 @@ export default function AboutDialog() {
<PropertySheet>
<PropertySheetItem label={t("about.version_label")}>
<div className="selectable-text">
{t("about.version", {
appVersion: appInfo?.appVersion,
dbVersion: appInfo?.dbVersion,
syncVersion: appInfo?.syncVersion
})}
<div className="build-info">
<Trans
i18nKey="about.build_info"
values={{
buildDate: appInfo?.buildDate ? formatDateTime(appInfo.buildDate) : ""
}}
components={{
buildRevision: RevisionLink(appInfo)
}}
/>
</div>
{t("about.version", {
appVersion: appInfo?.appVersion,
dbVersion: appInfo?.dbVersion,
syncVersion: appInfo?.syncVersion
})}
<div className="build-info">
<Trans
i18nKey="about.build_info"
values={{
buildDate: appInfo?.buildDate ? formatDateTime(appInfo.buildDate) : ""
}}
components={{
buildRevision: RevisionLink(appInfo)
}}
/>
</div>
</PropertySheetItem>
<PropertySheetItem label={t("about.contributors_label")}>
<div className="contributor-list use-tn-links">
<CachedContributors />
<PropertySheetItem className="contributor-list use-tn-links" label={t("about.contributors_label")}>
<CachedContributors />
<a href="https://github.com/TriliumNext/Trilium/graphs/contributors" target="_blank">
{t("about.contributor_full_list")}
</a>
</div>
<a href="https://github.com/TriliumNext/Trilium/graphs/contributors" target="_blank">
{t("about.contributor_full_list")}
</a>
</PropertySheetItem>
<PropertySheetItem label={t("about.data_directory")}>
<div className="selectable-text" style={{wordBreak: "break-all"}}>
<div style={{wordBreak: "break-all"}}>
{appInfo?.dataDirectory && (<DirectoryLink directory={appInfo.dataDirectory} />)}
</div>
</PropertySheetItem>

View File

@@ -7,6 +7,10 @@
dt {
color: var(--muted-text-color);
}
dd {
user-select: text;
}
}
}