diff --git a/src/components/MatchChatHistory.vue b/src/components/MatchChatHistory.vue index 0206cfc..dc9f280 100644 --- a/src/components/MatchChatHistory.vue +++ b/src/components/MatchChatHistory.vue @@ -2,30 +2,43 @@
- - - - + + + - - - + + + + + +
- {{ ConvertTickToTime(m.tick) }} - - Player avatar - +
+ {{ ConvertTickToTime(m.tick) }} + + Player avatar + + {{ m.player }} - - - - {{ m.message }} -
+ + +
+ VAC-Ban + Game-Ban +
+ {{ m.message }} +
@@ -34,7 +47,7 @@ @@ -107,11 +125,23 @@ export default { table td { padding: .5rem; } + .avatar { width: 20px; height: 20px; border-radius: 50%; } + +.player__vac { + .vac-placeholder { + width: 0; + } + img { + width: 20px; + height: 20px; + } +} + .name { cursor: pointer; text-align: left; @@ -131,15 +161,20 @@ table td { vertical-align: top; } } + .fa-caret-right { font-size: 1rem; } + .message { width: 40ch; max-width: 40ch; } -@media screen and (max-width: 768px) { +@media screen and (max-width: 576px) { + .td-avatar { + display: none; + } .name { width: 120px; max-width: 120px; diff --git a/src/router/index.js b/src/router/index.js index 97476f0..40e7b91 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -81,7 +81,7 @@ const routes = [ } }, { - path: 'chat-history', + path: 'chat', components: { score: lazyLoadComponent('MatchChatHistory') } diff --git a/src/views/Match.vue b/src/views/Match.vue index 8f29cbf..af42733 100644 --- a/src/views/Match.vue +++ b/src/views/Match.vue @@ -132,8 +132,8 @@ @@ -257,7 +257,7 @@ 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 && sub === 'chat-history') { + if (store.state.matchDetails.date <= 1643410799 && sub === 'chat') { GoToLink(`/match/${props.match_id}`) } else GoToLink(`/match/${props.match_id}/${sub}`)