Hide sys info in the frontend

This commit is contained in:
Sergey Stepanov 2023-09-12 01:55:35 +03:00 committed by sergystepanov
parent d7e7112e25
commit 992b6e06da
2 changed files with 9 additions and 6 deletions

View file

@ -502,9 +502,9 @@ body {
.menu-item__info {
color: white;
font-size: 50%;
font-size: 30%;
position: absolute;
right: 15px;
left: 15px;
}
.text-move {

View file

@ -112,7 +112,7 @@ const gameList = (() => {
const clear = () => {
_title.reset()
_desc.hide()
// _desc.hide()
}
return {
@ -130,13 +130,16 @@ const gameList = (() => {
rootEl.innerHTML = games.list.map(game =>
`<div class="menu-item">` +
`<div><span>${game.title}</span></div>` +
`<div class="menu-item__info hidden">${game.system}</div>` +
//`<div class="menu-item__info">${game.system}</div>` +
`</div>`)
.join('')
items = [...rootEl.querySelectorAll('.menu-item')].map(x => item(x))
}
return {
get items() {
return items
},
get selected() {
return items[games.index]
},
@ -179,7 +182,7 @@ const gameList = (() => {
}
const select = (index) => {
ui.selected && ui.selected.clear()
ui.items.forEach(i => i.clear()) // !to rewrite
games.index = index
ui.pos = games.index
}
@ -193,7 +196,7 @@ const gameList = (() => {
if (item) {
item.title.pick()
item.title.animate()
hasTransition ? (ui.onTransitionEnd = item.description.show) : item.description.show()
// hasTransition ? (ui.onTransitionEnd = item.description.show) : item.description.show()
}
}