UI: fix scroll-on-click, move execute query to top of SQL panel, 70/25 split layout#4
Merged
Merged
Conversation
…0/25 layout Agent-Logs-Url: https://github.com/Devn913/SQL_Chess/sessions/7d3e44cc-57ba-4831-bcfb-922e5b045efe Co-authored-by: Devn913 <56478595+Devn913@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
Devn913
April 21, 2026 08:31
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
input.focus()→input.focus({ preventScroll: true })infillSQLInputTemplate()sql-input-sectionin HTML to sit directly belowsql-panel-header, abovesql-content; query input is now the first thing visible in the SQL panel.chess-panelset toflex: 0 0 70%,.sql-paneltoflex: 0 0 25%; when SQL panel is toggled off, chess panel expands to fill via a JS-toggled.sql-hiddenclass (with CSS:has()as progressive enhancement for supporting browsers)--board-szupdated toclamp(320px, calc(70vw - var(--chess-panel-padding) * 2), 760px)to properly fill the narrower panel; extracted the offset into--chess-panel-paddingcustom property