Skip to content

增加 TaskListPane 中任务条目之间的间距#4340

Merged
Glavo merged 1 commit intoHMCL-dev:mainfrom
Glavo:task-list
Aug 26, 2025
Merged

增加 TaskListPane 中任务条目之间的间距#4340
Glavo merged 1 commit intoHMCL-dev:mainfrom
Glavo:task-list

Conversation

@Glavo
Copy link
Copy Markdown
Member

@Glavo Glavo commented Aug 26, 2025

No description provided.

@Glavo Glavo linked an issue Aug 26, 2025 that may be closed by this pull request
@Glavo Glavo requested a review from Copilot August 26, 2025 13:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the visual spacing in the TaskListPane component by adding bottom padding to task list items.

  • Adds 4 pixels of bottom padding to each task list cell to improve visual separation between items

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.


private Cell() {
setPadding(Insets.EMPTY);
setPadding(new Insets(0, 0, 4, 0));
Copy link

Copilot AI Aug 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider defining the padding value as a named constant (e.g., private static final double CELL_BOTTOM_PADDING = 4.0) to improve maintainability and make it easier to adjust spacing consistently across the component.

Suggested change
setPadding(new Insets(0, 0, 4, 0));
setPadding(new Insets(0, 0, CELL_BOTTOM_PADDING, 0));

Copilot uses AI. Check for mistakes.
@Glavo Glavo merged commit 64cc640 into HMCL-dev:main Aug 26, 2025
2 checks passed
@Glavo Glavo deleted the task-list branch August 26, 2025 13:52
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.

[Bug] 禁止UI字挤字

2 participants