From fd87bb4509720b61b99010c4f3210035fa48f0df Mon Sep 17 00:00:00 2001 From: Natsumi Date: Sat, 9 Aug 2025 12:28:44 +1200 Subject: [PATCH] Fix word splitting --- src/api/user.js | 1 + src/app.scss | 2 +- src/assets/scss/themes/_theme.dark_styles.scss | 1 + src/stores/user.js | 2 -- 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/user.js b/src/api/user.js index 2a40bf60..ad4df1a0 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -24,6 +24,7 @@ const userReq = { `getUser missing user data for: ${params.userId}` ); } + json.$lastFetch = Date.now(); // todo: make this not suck const args = { json, params, diff --git a/src/app.scss b/src/app.scss index f0f7488d..87b07d6c 100644 --- a/src/app.scss +++ b/src/app.scss @@ -117,7 +117,7 @@ .el-dialog__body { padding: 20px; - word-break: break-word; + word-break: auto-phrase; } .el-dialog__footer > .el-button + .el-button { diff --git a/src/assets/scss/themes/_theme.dark_styles.scss b/src/assets/scss/themes/_theme.dark_styles.scss index 08dcc3d6..797f3c53 100644 --- a/src/assets/scss/themes/_theme.dark_styles.scss +++ b/src/assets/scss/themes/_theme.dark_styles.scss @@ -350,6 +350,7 @@ div.x-friend-list .el-dialog__body { color: $--theme-text-1; + word-break: auto-phrase; } .el-radio { diff --git a/src/stores/user.js b/src/stores/user.js index fe01ff96..fe0b7e5c 100644 --- a/src/stores/user.js +++ b/src/stores/user.js @@ -520,7 +520,6 @@ export const useUserStore = defineStore('User', () => { $customTag: '', $customTagColour: '', $friendNumber: 0, - $lastFetch: Date.now(), $platform: '', // ...json @@ -552,7 +551,6 @@ export const useUserStore = defineStore('User', () => { } state.cachedUsers.set(ref.id, ref); } else { - json.$lastFetch = Date.now(); // todo: make this not suck if (json.state !== 'online') { // offline event before GPS to offline location friendStore.updateFriend(ref.id, json.state);