refactor to utils + bug-fixes

This commit is contained in:
cnachtigall1991
2021-10-07 19:04:34 +02:00
parent 0619989748
commit 9794235339
12 changed files with 189 additions and 134 deletions

View File

@@ -57,9 +57,13 @@ export default {
setup() {
document.title = 'Home | csgoWTF'
const recentVisited = JSON.parse(localStorage.getItem('recent-visited'))
if (recentVisited !== null)
recentVisited.reverse()
let recentVisited = JSON.parse(localStorage.getItem('recent-visited'))
if (recentVisited !== null) {
recentVisited.reverse()
if (window.innerWidth < 768) {
recentVisited = recentVisited.filter(i => recentVisited.indexOf(i) < 6)
}
}
return {recentVisited, GoToPlayer}
}
@@ -129,9 +133,6 @@ export default {
@media screen and (max-width: 768px) {
.recent-search {
max-height: 240px;
overflow: hidden;
.player-card {
height: 60px;
img {