Skip to content

Commit afc8f60

Browse files
Copilotfsmosca
andcommitted
Further reduce move list width to 18 and increase book to 30 for right-edge alignment
Agent-Logs-Url: https://github.com/fsmosca/Python-Easy-Chess-GUI/sessions/5f6c18fd-5bb4-458d-b64f-45449aaa646e Co-authored-by: fsmosca <22366935+fsmosca@users.noreply.github.com>
1 parent b01900c commit afc8f60

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

python_easy_chess_gui.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2932,13 +2932,15 @@ def build_review_layout(self, is_user_white=True):
29322932
[sg.Multiline('', do_not_clear=True, autoscroll=False, size=(52, 4),
29332933
font=('Consolas', 10), key='review_header_k',
29342934
disabled=True)],
2935-
[sg.Text('Move list', size=(22, 1), font=('Consolas', 10)),
2936-
sg.Text('Book moves', size=(28, 1), font=('Consolas', 10))],
2937-
[sg.Listbox(values=['Start position'], size=(22, REVIEW_MOVE_LIST_HEIGHT),
2935+
# Listbox scrollbar adds ~4 chars of visual width, so 18+30=48
2936+
# aligns with the 52-char Multiline/Text elements above and below.
2937+
[sg.Text('Move list', size=(18, 1), font=('Consolas', 10)),
2938+
sg.Text('Book moves', size=(30, 1), font=('Consolas', 10))],
2939+
[sg.Listbox(values=['Start position'], size=(18, REVIEW_MOVE_LIST_HEIGHT),
29382940
font=('Consolas', 10), key='review_move_list_k',
29392941
enable_events=True, expand_y=True),
29402942
sg.Multiline('', do_not_clear=True, autoscroll=False,
2941-
size=(28, REVIEW_MOVE_LIST_HEIGHT),
2943+
size=(30, REVIEW_MOVE_LIST_HEIGHT),
29422944
font=('Consolas', 10), key='review_book_k',
29432945
disabled=True, expand_y=True)],
29442946
[sg.Text('Position 0/0', size=(20, 1), font=('Consolas', 10),

0 commit comments

Comments
 (0)