Upload files to "/"

This commit is contained in:
threememories 2026-05-07 21:01:40 +00:00
parent e58ff989d1
commit 9d40ce3346
1 changed files with 25 additions and 11 deletions

View File

@ -1294,15 +1294,19 @@
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) {
logContainer.classList.add('active-log'); // ONLY popup and show text if it is a DIRECTIVE
if (Gamestate.logFadeTimeout) clearTimeout(Gamestate.logFadeTimeout); if (logData.message.includes('[ DIRECTIVE ]')) {
Gamestate.logFadeTimeout = setTimeout(() => { combatLog.innerHTML = ""; // Clear old text so it's perfectly clean
logContainer.classList.remove('active-log'); logContainer.classList.add('active-log');
}, 4000); if (Gamestate.logFadeTimeout) clearTimeout(Gamestate.logFadeTimeout);
Gamestate.logFadeTimeout = setTimeout(() => {
logContainer.classList.remove('active-log');
}, 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');