[PR #12381] [MERGED] Fix toggle switches needing a negative margin #29015

Open
opened 2026-01-31 09:32:15 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/12381
Author: @PankajBhojwani
Created: 2/4/2022
Status: Merged
Merged: 2/5/2022
Merged by: @undefined

Base: mainHead: dev/pabhoj/sui_language


📝 Commits (2)

  • 0ee7d18 remove toggle switches negative margin, use grid instead of stack panel
  • a6aa3c6 undo grid change, that'll be in separate PR

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 src/cascadia/TerminalSettingsEditor/CommonResources.xaml (+2 -1)

📄 Description

Summary of the Pull Request

Reducing the MinWidth of a toggle switch means it no longer needs a negative margin to align it correctly

PR Checklist

  • Closes #xxx
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Documentation updated. If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated.
  • I work here

Validation Steps Performed

Setting a different language no longer causes the toggle switch to fall out of the expander


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/12381 **Author:** [@PankajBhojwani](https://github.com/PankajBhojwani) **Created:** 2/4/2022 **Status:** ✅ Merged **Merged:** 2/5/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/pabhoj/sui_language` --- ### 📝 Commits (2) - [`0ee7d18`](https://github.com/microsoft/terminal/commit/0ee7d18aaedb351ea43665b8768666b268a4f5b7) remove toggle switches negative margin, use grid instead of stack panel - [`a6aa3c6`](https://github.com/microsoft/terminal/commit/a6aa3c66adb0e956be004ba8b2c474849f410709) undo grid change, that'll be in separate PR ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalSettingsEditor/CommonResources.xaml` (+2 -1) </details> ### 📄 Description ## Summary of the Pull Request Reducing the `MinWidth` of a toggle switch means it no longer needs a negative margin to align it correctly ## PR Checklist * [ ] Closes #xxx * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx * [ ] Schema updated. * [x] I work here ## Validation Steps Performed Setting a different language no longer causes the toggle switch to fall out of the expander --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:32:15 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29015