diff --git a/medcat-trainer/webapp/frontend/src/App.vue b/medcat-trainer/webapp/frontend/src/App.vue
index 5b406daa5..63bd52c7c 100644
--- a/medcat-trainer/webapp/frontend/src/App.vue
+++ b/medcat-trainer/webapp/frontend/src/App.vue
@@ -12,7 +12,7 @@
Med
AT
- {{ version }}
+ {{ displayVersion }}
@@ -64,6 +64,13 @@ export default {
useOidc: isOidcEnabled(),
}
},
+ computed: {
+ displayVersion () {
+ const v = this.version || ''
+ if (v.length <= 11) return v
+ return `${v.slice(0, 7)}…${v.slice(-6)}`
+ }
+ },
methods: {
navigateToHome () {
this.$router.push('/')