zed icon indicating copy to clipboard operation
zed copied to clipboard

Adjust pane magnification and handle conditions in layout

Open tugkanpilka opened this issue 1 year ago • 2 comments

I wasn’t sure about the purpose of the if active_pane_magnification.is_none() check, as I didn’t notice any side effects after removing it. However, the issue was resolved without it.

Closes #4265

Release Notes:

-Fixed

  1. Pane shrinking issue is fixed by calculating the remaining area in the pane group instead of attempting “1” to it.
  2. Pane separation issue is fixed.

tugkanpilka avatar Feb 03 '25 22:02 tugkanpilka

@mikayla-maki

I now better understand the intended behavior and have updated the code to properly handle both cases:

  1. When active_pane_magnification is Some:

    • Only dividers are visible (no handles)
    • Users cannot manually resize panes
    • This prevents conflict with the magnification feature
  2. When active_pane_magnification is None:

    • Both dividers and handles are visible
    • Users can manually resize panes using the handles

Please let me know if this aligns better with the intended behavior. Thank you!

tugkanpilka avatar Mar 15 '25 06:03 tugkanpilka

Hey @tugkanpilka, taking a look at this, It looks like what you've done helped, but I don't think we should close the linked issue, as there are still many unresolved visual discrepancies when the magnification setting is enabled. I think I understand what you've done so far, and I'm happy to merge this as is and not close the issue, however, if you'd like to keep working and fix the other rendering problems in order to completely close the issue I'd obviously appreciate it!

I also recommend merging or rebasing on top of main before we merge this! There's been quite a few changes since this branch was last updated

Very tall screenshot showing multiple rendering issues Screenshot 2025-05-09 at 9 08 21 AM

probably-neb avatar May 09 '25 14:05 probably-neb

Closing, as we removed support for pane magnification, in part due to the scope and complexity of issues this feature caused like the ones this PR was attempting to solve. Sorry this means your work is going to waste, however, the feature as a whole was just incomplete and did not meet the quality bar we set for features in Zed. I hope you understand.

probably-neb avatar Jun 06 '25 09:06 probably-neb