refactor to utils + bug-fixes
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user