From f26324c8665fee227ee9b982a8a71f11b4631d5c Mon Sep 17 00:00:00 2001 From: vikingowl Date: Thu, 3 Feb 2022 15:32:56 +0100 Subject: [PATCH] updated broken icon in chat history 2 --- src/components/MatchChatHistory.vue | 4 ++-- src/views/Match.vue | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/components/MatchChatHistory.vue b/src/components/MatchChatHistory.vue index 6353d81..c77e385 100644 --- a/src/components/MatchChatHistory.vue +++ b/src/components/MatchChatHistory.vue @@ -108,8 +108,8 @@ table td { padding: .5rem; } .avatar { - width: 75%; - height: 75%; + width: 20px; + height: 20px; border-radius: 50%; } .name { diff --git a/src/views/Match.vue b/src/views/Match.vue index bcb6072..8f29cbf 100644 --- a/src/views/Match.vue +++ b/src/views/Match.vue @@ -212,6 +212,7 @@ export default { data: res }) + checkRoute() data.matchDetails = store.state.matchDetails data.matchDetails.stats.forEach(p => { @@ -256,10 +257,10 @@ export default { if (route.fullPath.split('/')[3]) { const sub = route.fullPath.split('/')[3] if (matchIdPattern.test(props.match_id)) { - if (store.state.matchDetails.date > 1643410799) - GoToLink(`/match/${props.match_id}/${sub}`) - else + if (store.state.matchDetails.date <= 1643410799 && sub === 'chat-history') { GoToLink(`/match/${props.match_id}`) + } else + GoToLink(`/match/${props.match_id}/${sub}`) } else { errorHandling(404) @@ -323,9 +324,6 @@ export default { }) onMounted(() => { - checkRoute() - - const headHeight = 230 const navHeight = 42