Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@siglum/filesystem": "github:SiglumProject/siglum-filesystem#1d2bbb0",
"@siglum/git": "github:SiglumProject/siglum-git",
"buffer": "^6.0.3",
"busytex-lazy": "github:SiglumProject/busytex-lazy",
"busytex-lazy": "github:SiglumProject/busytex-lazy#9e5d319",
"codemirror": "^6.0.2",
"codemirror-lang-latex": "^0.2.0",
"comlink": "^4.4.2",
Expand All @@ -43,6 +43,7 @@
"@testing-library/user-event": "^14.6.1",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-basic-ssl": "^2.1.3",
"@vitejs/plugin-react": "^4.3.0",
"jest": "^30.2.0",
"ts-jest": "^29.4.6",
Expand Down
14 changes: 14 additions & 0 deletions app/public/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1295,13 +1295,27 @@ self.onmessage = async function(e) {
// Queue compile operations to prevent concurrent execution
operationQueue = operationQueue.then(() => handleCompile(msg)).catch(e => {
workerLog(`Compile queue error: ${e.message}`);
// IMPORTANT: Send error response so main thread doesn't hang
self.postMessage({
type: 'compile-response',
id: msg.id,
success: false,
error: e.message,
});
});
break;

case 'generate-format':
// Queue format operations to prevent concurrent execution
operationQueue = operationQueue.then(() => handleFormatGenerate(msg)).catch(e => {
workerLog(`Format queue error: ${e.message}`);
// IMPORTANT: Send error response so main thread doesn't hang
self.postMessage({
type: 'format-generate-response',
id: msg.id,
success: false,
error: e.message,
});
});
break;

Expand Down
17 changes: 7 additions & 10 deletions app/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
height: 100%;
opacity: 0;
transform: translateY(8px);
transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
transition: opacity 0.25s cubic-bezier(0.23, 1, 0.32, 1), transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.desktop-view.loaded {
Expand All @@ -43,7 +43,7 @@
height: 100%;
opacity: 0;
transform: translateY(8px);
transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
transition: opacity 0.25s cubic-bezier(0.23, 1, 0.32, 1), transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-view.loaded {
Expand All @@ -57,7 +57,7 @@
background: var(--color-base);
opacity: 0;
transform: translateY(8px);
transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
transition: opacity 0.25s cubic-bezier(0.23, 1, 0.32, 1), transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.pdf-preview-panel.loaded {
Expand Down Expand Up @@ -105,7 +105,7 @@
.resize-handle {
width: 2px !important;
background: var(--color-border);
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
transition: background 0.3s cubic-bezier(0.23, 1, 0.32, 1), width 0.15s ease;
position: relative;
border-radius: 1px;
overflow: hidden;
Expand All @@ -128,7 +128,6 @@
.resize-handle:hover {
background: var(--color-border);
width: 3px !important;
box-shadow: 0 0 8px rgba(181, 133, 106, 0.2);
}

.resize-handle:hover::before {
Expand All @@ -138,9 +137,6 @@
.resize-handle:active {
background: var(--color-accent);
width: 4px !important;
box-shadow:
0 0 12px rgba(181, 133, 106, 0.3),
0 0 24px rgba(181, 133, 106, 0.15);
}

.resize-handle:active::before {
Expand Down Expand Up @@ -200,7 +196,7 @@
background: rgba(232, 227, 211, 0.06);
border-radius: 4px;
text-decoration: none;
transition: all 0.15s ease;
transition: background 0.15s ease, color 0.15s ease;
}

.conflict-modal-repo:hover {
Expand Down Expand Up @@ -229,7 +225,8 @@
font-weight: 500;
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
cursor: pointer;
transition: all 0.15s ease;
transition: background 0.15s ease, filter 0.15s ease;
touch-action: manipulation;
}

.conflict-modal-btn.primary {
Expand Down
Loading