Skip to content

UI: fix scroll-on-click, move execute query to top of SQL panel, 70/25 split layout#4

Merged
Devn913 merged 1 commit into
mainfrom
copilot/improve-ui-interaction
Apr 21, 2026
Merged

UI: fix scroll-on-click, move execute query to top of SQL panel, 70/25 split layout#4
Devn913 merged 1 commit into
mainfrom
copilot/improve-ui-interaction

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 21, 2026

Three UI issues: clicking a piece scrolled the page to the SQL textarea; the "Execute SQL Move" input was buried at the bottom of the SQL panel; and the board/query panel split had no defined proportions.

Changes

  • No scroll on piece selectinput.focus()input.focus({ preventScroll: true }) in fillSQLInputTemplate()
  • Execute SQL Move repositioned — moved sql-input-section in HTML to sit directly below sql-panel-header, above sql-content; query input is now the first thing visible in the SQL panel
  • 70/25 layout.chess-panel set to flex: 0 0 70%, .sql-panel to flex: 0 0 25%; when SQL panel is toggled off, chess panel expands to fill via a JS-toggled .sql-hidden class (with CSS :has() as progressive enhancement for supporting browsers)
  • Board size--board-sz updated to clamp(320px, calc(70vw - var(--chess-panel-padding) * 2), 760px) to properly fill the narrower panel; extracted the offset into --chess-panel-padding custom property

@Devn913 Devn913 marked this pull request as ready for review April 21, 2026 08:32
@Devn913 Devn913 merged commit 6fb03b6 into main Apr 21, 2026
3 checks passed
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.

2 participants