Skip to content

Size the agent table and agent tabs from their splitter panes - #64

Open
Deenyoro wants to merge 1 commit into
amidaware:developfrom
Deenyoro:fix/dashboard-pane-heights
Open

Deenyoro wants to merge 1 commit into
amidaware:developfrom
Deenyoro:fix/dashboard-pane-heights

Conversation

@Deenyoro

@Deenyoro Deenyoro commented Nov 2, 2026 •

Copy link
Copy Markdown

The agent table height comes from the screen height and splitter position (SET_SPLITTER). It's only recalculated when the splitter is dragged. If the window changes size after the dashboard loads, the table keeps its old height:

  • Taller window (maximizing, or rotating a monitor to portrait): there's a big empty gap above the agent tabs.
  • Shorter window: the table runs under the agent tabs and hides the last rows and the footer.

The agent tabs (tabHeight) have the same issue.

This change uses a ResizeObserver on the two splitter panes to size the table and the tabs from the space they actually have. The old calculation is still used for the first paint and as a fallback. The tabs pane is also clamped when the window gets shorter, so the table doesn't get squeezed out.

Tested on develop vs this branch with 197 sample agents. The numbers are the gap between the bottom of the table and the bottom of its pane:

develop this branch
load at 1080x1000, resize to 1080x1800 800px empty 0
resize to 1080x700 table 850px under the tabs 0
resize to 1920x1080 720px under the tabs 0
drag splitter up overflows 0

Before / after (window resized to portrait after loading, sample data):

The table height was only recalculated on splitter drag, so after a window resize it either left a gap above the agent tabs or ran under them. Use a ResizeObserver on the panes instead, keeping the old calculation as a fallback.
@Deenyoro
Deenyoro force-pushed the fix/dashboard-pane-heights branch from be48390 to 157453c Compare November 2, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant