Skip to content
Merged
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
70 changes: 37 additions & 33 deletions bun.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"url": "git+https://github.com/opencor/webapp.git"
},
"type": "module",
"version": "0.20260612.0",
"version": "0.20260612.1",
"engines": {
"bun": ">=1.2.0"
},
Expand Down Expand Up @@ -81,7 +81,7 @@
"electron-conf": "^1.3.0",
"electron-updater": "^6.8.9",
"electron-vite": "^5.0.0",
"esbuild": "^0.28.0",
"esbuild": "^0.28.1",
"node-addon-api": "^8.8.0",
"postcss": "^8.5.15",
"rollup-plugin-visualizer": "^7.0.1",
Expand Down
62 changes: 31 additions & 31 deletions src/renderer/bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"./style.css": "./dist/opencor.css"
},
"version": "0.20260612.0",
"version": "0.20260612.1",
"libopencorVersion": "0.20260604.0",
"scripts": {
"build": "vite build && bun scripts/generate.version.js",
Expand Down Expand Up @@ -84,7 +84,7 @@
"@vitejs/plugin-vue": "^6.0.7",
"@vue/tsconfig": "^0.9.1",
"autoprefixer": "^10.5.0",
"esbuild": "^0.28.0",
"esbuild": "^0.28.1",
"postcss": "^8.5.15",
"rollup-plugin-visualizer": "^7.0.1",
"stylelint": "^17.13.0",
Expand Down
9 changes: 8 additions & 1 deletion src/renderer/src/common/vueCommon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,14 @@ export const useAppendTarget = () => {
const containerClass = 'opencor-overlay-container';

vue.onMounted(() => {
const opencor = document.querySelector('.opencor');
// Find the closest .opencor ancestor so that each OpenCOR instance gets its own overlay container. This ensures
// that in a multi-instance setup, each instance's overlays stay within its own DOM tree. Falls back to
// document.querySelector for backward compatibility (e.g., when called outside a component setup function or when
// getCurrentInstance() returns null).

const instance = vue.getCurrentInstance();
const rootEl = instance?.vnode?.el;
const opencor = rootEl instanceof Element ? rootEl.closest('.opencor') : document.querySelector('.opencor');

if (opencor) {
let overlayContainer = opencor.querySelector(`.${containerClass}`) as HTMLElement | null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1755,8 +1755,8 @@ const onTrackRun = (): void => {
}

tooltipRows.push(`<tr>
<td>
<strong>${input.name}:</strong>
<td style="vertical-align: top; font-weight: bold;">
${input.name}:
</td>
<td style="padding-left: 8px;">
${inputValue}
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/components/widgets/TooltipWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const onMouseLeave = () => {

<style scoped>
.tooltip {
width: max-content;
max-width: 20rem;
font-size: 0.8rem;
}
Expand Down
Loading