Upload files to "/"
This commit is contained in:
parent
e58ff989d1
commit
9d40ce3346
26
index.html
26
index.html
|
|
@ -1294,16 +1294,20 @@
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.turn-info {
|
/* HIDE DIRECTIVES COMPLETELY ON MOBILE */
|
||||||
font-size: 12px;
|
.turn-info,
|
||||||
margin-bottom: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* HIDE NON-ESSENTIALS TO SAVE VERTICAL SPACE */
|
|
||||||
.turn-info-message {
|
.turn-info-message {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* PULL REINFORCEMENTS UP TO FILL THE GAP */
|
||||||
|
.metric-box[style*="margin-top: 20px;"] {
|
||||||
|
margin-top: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* HIDE NON-ESSENTIALS TO SAVE VERTICAL SPACE */
|
||||||
|
|
||||||
|
|
||||||
.player-panel>div:first-child>div:nth-of-type(3) {
|
.player-panel>div:first-child>div:nth-of-type(3) {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
@ -4825,11 +4829,21 @@
|
||||||
// --- MOBILE GHOST LOG FADE IN/OUT ---
|
// --- MOBILE GHOST LOG FADE IN/OUT ---
|
||||||
let logContainer = document.querySelector('.combat-log-container');
|
let logContainer = document.querySelector('.combat-log-container');
|
||||||
if (logContainer && window.innerWidth <= 950) {
|
if (logContainer && window.innerWidth <= 950) {
|
||||||
|
// ONLY popup and show text if it is a DIRECTIVE
|
||||||
|
if (logData.message.includes('[ DIRECTIVE ]')) {
|
||||||
|
combatLog.innerHTML = ""; // Clear old text so it's perfectly clean
|
||||||
logContainer.classList.add('active-log');
|
logContainer.classList.add('active-log');
|
||||||
if (Gamestate.logFadeTimeout) clearTimeout(Gamestate.logFadeTimeout);
|
if (Gamestate.logFadeTimeout) clearTimeout(Gamestate.logFadeTimeout);
|
||||||
Gamestate.logFadeTimeout = setTimeout(() => {
|
Gamestate.logFadeTimeout = setTimeout(() => {
|
||||||
logContainer.classList.remove('active-log');
|
logContainer.classList.remove('active-log');
|
||||||
}, 4000);
|
}, 4000);
|
||||||
|
} else {
|
||||||
|
// Instantly skip and hide all non-directive messages on mobile
|
||||||
|
this.isLogging = false;
|
||||||
|
logData.resolve();
|
||||||
|
this.processLogQueue();
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let entry = document.createElement('div');
|
let entry = document.createElement('div');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue