Skip to content

Update Settings Layout- Remove y spacing and update break for Separator #165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 24, 2025

Conversation

cwray-tech
Copy link
Contributor

The space-y was not necessary on smaller screens since we are using a Separator component. I also updated the separator to hide on lg and above since the container element changes to flex row at that breakpoint.

Before

Profile-settings-Laravel-07-16-2025_06_45_PM Profile-settings-Laravel-07-16-2025_06_46_PM

After Updates

Profile-settings-Laravel-07-16-2025_06_43_PM Profile-settings-Laravel-07-16-2025_06_44_PM

The space-y was not necessary on smaller screens since we are using a Separator component. I also updated the separator to hide on lg and above since the container element changes to flex row at that breakpoint.
@Copilot Copilot AI review requested due to automatic review settings July 17, 2025 01:48
Copy link
Contributor

@Copilot 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 refines the Settings layout by removing redundant vertical spacing on smaller screens and adjusting when the Separator is hidden to align with the switch to a horizontal layout at larger breakpoints.

  • Removed default space-y utilities on the main container and rely on the Separator for spacing.
  • Changed the Separator’s hide breakpoint from md:hidden to lg:hidden to match the flex-row layout at lg.
Comments suppressed due to low confidence (1)

resources/js/layouts/settings/Layout.vue:49

  • [nitpick] Previously the container used space-y-8 (2rem) for vertical gaps but my-6 here is 1.5rem. Confirm if my-6 provides the intended spacing or if my-8 is needed for consistency.
            <Separator class="my-6 lg:hidden" />

Comment on lines 32 to 34
<div class="flex flex-col lg:flex-row lg:space-y-0 lg:space-x-12">
<aside class="w-full max-w-xl lg:w-48">
<nav class="flex flex-col space-y-1 space-x-0">
Copy link
Preview

Copilot AI Jul 17, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider using Tailwind's gap utilities (e.g., gap-y-6 lg:gap-x-12) instead of separate space- classes and an explicit Separator for spacing consistency and cleaner markup.

Suggested change
<div class="flex flex-col lg:flex-row lg:space-y-0 lg:space-x-12">
<aside class="w-full max-w-xl lg:w-48">
<nav class="flex flex-col space-y-1 space-x-0">
<div class="flex flex-col lg:flex-row gap-y-6 lg:gap-x-12">
<aside class="w-full max-w-xl lg:w-48">
<nav class="flex flex-col gap-y-1">

Copilot uses AI. Check for mistakes.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@taylorotwell taylorotwell merged commit 381c0d2 into laravel:main Jul 24, 2025
2 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