Video della partita completa (pomeriggio → sera) con voci e musiche rimontate dal registro audio del copione; inventario: nomi lunghi su due righe dentro il pulsante
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018ks2K99uqCZjAxvy7Rdj1R
This commit is contained in:
+6
-1
@@ -447,7 +447,12 @@ function updateInventory() {
|
||||
icon = document.createElement('i');
|
||||
icon.style.background = item.icon?.fill ?? '#ccc';
|
||||
}
|
||||
b.append(icon, item.name);
|
||||
// Il nome in uno span: i nomi lunghi («stecco e gomma») vanno a capo su due righe strette, non su tre.
|
||||
const name = document.createElement('span');
|
||||
// Dopo l'apostrofo si può andare a capo («chiave dell'» / «oratorio»): le parole restano intere.
|
||||
name.textContent = item.name.replace(/'/g, "'\u200b");
|
||||
if (item.name.length > 10) name.className = 'long';
|
||||
b.append(icon, name);
|
||||
let timer = null, long = false;
|
||||
b.addEventListener('pointerdown', () => { long = false; timer = setTimeout(() => { long = true; command.clickItem(id, { look: true }); }, LONG_PRESS); });
|
||||
b.addEventListener('pointerup', () => clearTimeout(timer));
|
||||
|
||||
Reference in New Issue
Block a user