fix: graph SVG fills container height, fallback to viewport calc

This commit is contained in:
Viktor Barzin 2026-03-23 00:06:55 +02:00
parent e8ae2b50ea
commit 9edb381c85
No known key found for this signature in database
GPG key ID: 0EB088298288D958
2 changed files with 3 additions and 1 deletions

View file

@ -285,6 +285,8 @@ textarea.input-field {
.graph-container svg {
display: block;
width: 100%;
height: 100%;
}
/* Node detail panel */

View file

@ -46,7 +46,7 @@ function graphComponent() {
if (memories.length === 0) return;
const width = container.clientWidth || container.parentElement?.clientWidth || 800;
const height = container.clientHeight || 500;
const height = Math.max(container.clientHeight, window.innerHeight - 180);
// Build nodes and tag-based edges
const nodes = memories.map(m => ({