diff --git a/package.json b/package.json index 425a87f..174d12a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "iccery", "private": true, - "version": "0.1.9", + "version": "0.1.10", "type": "module", "scripts": { "tauri": "tauri" diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index c7cb738..b4c7995 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iccery" -version = "0.1.9" +version = "0.1.10" description = "A Tauri App" authors = ["you"] edition = "2021" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 07cfef0..fc6ab45 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "ICCery", - "version": "0.1.9", + "version": "0.1.10", "identifier": "com.gronod.iccery", "build": { "frontendDist": "../src" diff --git a/src/index.html b/src/index.html index 908e056..4af00bd 100644 --- a/src/index.html +++ b/src/index.html @@ -94,10 +94,10 @@ - + @@ -166,10 +166,10 @@ - + - + @@ -385,10 +385,10 @@ - + diff --git a/src/js/chartread.js b/src/js/chartread.js index b6c69f6..a0fb3d0 100644 --- a/src/js/chartread.js +++ b/src/js/chartread.js @@ -90,6 +90,7 @@ export function initChartread() { } logPre.textContent = ""; + logContainer.open = false; logContainer.classList.remove("hidden"); setState(STATE.CALIBRATING); setPrompt("Starting chartread... waiting for instrument calibration prompt."); diff --git a/src/js/colprof.js b/src/js/colprof.js index 2a7f8c0..7ef72bc 100644 --- a/src/js/colprof.js +++ b/src/js/colprof.js @@ -36,6 +36,7 @@ export function initColprof() { const description = descInput.value.trim() || basename; logPre.textContent = ""; + logContainer.open = false; logContainer.classList.remove("hidden"); spinnerContainer.classList.remove("hidden"); successCard.classList.add("hidden"); diff --git a/src/js/printtarg.js b/src/js/printtarg.js index 53770db..a826b4c 100644 --- a/src/js/printtarg.js +++ b/src/js/printtarg.js @@ -272,6 +272,7 @@ export function initPrinttarg() { } logPre.textContent = ""; + logContainer.open = false; logContainer.classList.remove("hidden"); tiffGallery.classList.add("hidden"); if (rawPrintPanel) rawPrintPanel.classList.add("hidden"); diff --git a/src/js/profcheck.js b/src/js/profcheck.js index 49677c6..b61e426 100644 --- a/src/js/profcheck.js +++ b/src/js/profcheck.js @@ -33,6 +33,7 @@ export function initProfcheck() { const iccPath = cwd ? `${cwd}${sep}${basename}.icc` : `${basename}.icc`; logPre.textContent = ""; + logContainer.open = false; logContainer.classList.remove("hidden"); reportCard.classList.add("hidden"); btnVerify.disabled = true; diff --git a/src/js/targen.js b/src/js/targen.js index e6a9f08..3618aa5 100644 --- a/src/js/targen.js +++ b/src/js/targen.js @@ -77,6 +77,7 @@ export function initTargen() { // Generate button clicks btnGenerate.addEventListener("click", async () => { logPre.textContent = ""; + logContainer.open = false; logContainer.classList.remove("hidden"); btnGenerate.disabled = true; diff --git a/src/styles/main.css b/src/styles/main.css index 3a117e3..9c04fa3 100644 --- a/src/styles/main.css +++ b/src/styles/main.css @@ -270,23 +270,41 @@ button:disabled { } .log-container { - margin-top: 20px; + margin-top: 16px; background: #111; border: 1px solid var(--border-color); border-radius: 4px; - padding: 10px; + padding: 8px 12px; } -.log-container h4 { - margin: 0 0 10px 0; +.log-container summary { + cursor: pointer; + user-select: none; + font-weight: 500; + font-size: 0.85rem; color: #888; - font-size: 0.9em; + outline: none; + display: list-item; + transition: color 0.2s ease; +} + +.log-container summary:hover { + color: #ccc; +} + +.log-container[open] { + padding-bottom: 12px; +} + +.log-container[open] summary { + margin-bottom: 10px; + color: #aaa; } .log-container pre { margin: 0; font-family: monospace; - font-size: 0.9em; + font-size: 0.85rem; color: #ccc; max-height: 200px; overflow-y: auto;