Skip to content

chore: fix spacing/padding on main page#142

Merged
OpenSauce merged 1 commit intomainfrom
fix-spacing
Dec 7, 2025
Merged

chore: fix spacing/padding on main page#142
OpenSauce merged 1 commit intomainfrom
fix-spacing

Conversation

@OpenSauce
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings December 7, 2025 01:05
@OpenSauce OpenSauce enabled auto-merge (squash) December 7, 2025 01:06
@OpenSauce OpenSauce merged commit 62ffa12 into main Dec 7, 2025
11 checks passed
@OpenSauce OpenSauce deleted the fix-spacing branch December 7, 2025 01:07
Copy link
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 standardizes spacing and padding values across the main application interface to improve visual consistency. The changes primarily reduce spacing values from 20 to 10 pixels and adjust padding in various components.

  • Standardizes spacing values to 10 pixels across most components (down from 15-20 pixels)
  • Adjusts padding values to achieve more consistent layout spacing
  • Removes redundant padding from some nested containers

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/gui/app.rs Reduces main content column spacing from 20 to 10 pixels
src/gui/components/control.rs Reduces control bar row spacing from 20 to 10 pixels
src/gui/components/preset_bar.rs Reduces spacing from 20 to 10 and removes padding from container
src/gui/components/stage_list.rs Replaces spacing with padding on the stage list column
src/gui/components/ir_cabinet_control.rs Removes padding from the IR cabinet control content column
src/gui/components/dialogs/settings.rs Reduces spacing and padding values in the settings dialog layout

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


pub fn view(&self) -> Element<'_, Message> {
let mut col = column![].spacing(10).width(Length::Fill);
let mut col = column![].width(Length::Fill).padding(10);
Copy link

Copilot AI Dec 7, 2025

Choose a reason for hiding this comment

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

This change removes spacing between items in the column while adding padding around the column. This means stages in the list will no longer have any gaps between them. Consider keeping both .spacing(10) for gaps between stages AND .padding(10) for padding around the column, or use .spacing(10).padding(10) to maintain both properties.

Suggested change
let mut col = column![].width(Length::Fill).padding(10);
let mut col = column![].width(Length::Fill).spacing(10).padding(10);

Copilot uses AI. Check for mistakes.
.spacing(10)
.align_y(Alignment::Center)
.width(Length::Fill),
)
Copy link

Copilot AI Dec 7, 2025

Choose a reason for hiding this comment

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

Inconsistent padding between return paths. The container in the confirmation flow (line 112) has .padding(10), but padding was removed from this container. This creates a visual inconsistency where the preset bar will have different padding depending on which UI state is active. Either remove padding from line 112 as well, or restore padding here for consistency.

Suggested change
)
)
.padding(10)

Copilot uses AI. Check for mistakes.
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