Skip to content

fix(client): drop modal chrome from embedded settings sections - #2

Merged
Anans-Ivresse merged 1 commit into
modusensus:mainfrom
Liuxin4950:fix/embedded-settings-panel-chrome
Aug 16, 2026
Merged

fix(client): drop modal chrome from embedded settings sections#2
Anans-Ivresse merged 1 commit into
modusensus:mainfrom
Liuxin4950:fix/embedded-settings-panel-chrome

Conversation

@Liuxin4950

Copy link
Copy Markdown
Contributor

The MemoryPanel and SettingsPanel both render in two modes: a portal modal (styles.panel, full chrome) and an embedded variant used by the 'settings.section' slot inside the DSH settings page. The embedded branch reused the modal panel style with only width/maxWidth/maxHeight overridden, so the section rendered as a floating card — white background, 12px radius, 16px padding, and a 0 8px 40px shadow — inside the settings host's own surface, producing an unwanted inset box with a shadow on the left edge of the settings page.

The embedded variant now uses a plain full-width flex column with no background, radius, padding, or shadow; the modal (portal) mode keeps the panel chrome unchanged.

Adds a regression test asserting both panels' embedded branches carry none of the modal-only chrome.

The MemoryPanel and SettingsPanel both render in two modes: a portal
modal (styles.panel, full chrome) and an embedded variant used by the
'settings.section' slot inside the DSH settings page. The embedded
branch reused the modal panel style with only width/maxWidth/maxHeight
overridden, so the section rendered as a floating card — white
background, 12px radius, 16px padding, and a 0 8px 40px shadow — inside
the settings host's own surface, producing an unwanted inset box with a
shadow on the left edge of the settings page.

The embedded variant now uses a plain full-width flex column with no
background, radius, padding, or shadow; the modal (portal) mode keeps
the panel chrome unchanged.

Adds a regression test asserting both panels' embedded branches carry
none of the modal-only chrome.
@Anans-Ivresse

Copy link
Copy Markdown
Collaborator

已收到你的 PR,感谢贡献!明天我会测试后合并 🙏

@Anans-Ivresse
Anans-Ivresse merged commit b07fbac into modusensus:main Aug 16, 2026
@Anans-Ivresse

Copy link
Copy Markdown
Collaborator

Hi @Liuxin4950, thanks for the contribution! 🙏

I tested your PR:

  • Ran the full test suite on your branch: 259/259 passing (including your new regression test)
  • Security review: clean — pure UI style change, no XSS / injection / logic risk

Merged ✅ (squash) and released as v0.2.6 on npm.

Great fix — the embedded panels now render flat in the settings page instead of floating cards. Looking forward to more contributions! 🚀

Anans-Ivresse added a commit that referenced this pull request Aug 16, 2026
Anans-Ivresse pushed a commit that referenced this pull request Aug 16, 2026
The MemoryPanel and SettingsPanel both render in two modes: a portal
modal (styles.panel, full chrome) and an embedded variant used by the
'settings.section' slot inside the DSH settings page. The embedded
branch reused the modal panel style with only width/maxWidth/maxHeight
overridden, so the section rendered as a floating card — white
background, 12px radius, 16px padding, and a 0 8px 40px shadow — inside
the settings host's own surface, producing an unwanted inset box with a
shadow on the left edge of the settings page.

The embedded variant now uses a plain full-width flex column with no
background, radius, padding, or shadow; the modal (portal) mode keeps
the panel chrome unchanged.

Adds a regression test asserting both panels' embedded branches carry
none of the modal-only chrome.
Anans-Ivresse added a commit that referenced this pull request Aug 16, 2026
Anans-Ivresse pushed a commit that referenced this pull request Aug 16, 2026
The MemoryPanel and SettingsPanel both render in two modes: a portal
modal (styles.panel, full chrome) and an embedded variant used by the
'settings.section' slot inside the DSH settings page. The embedded
branch reused the modal panel style with only width/maxWidth/maxHeight
overridden, so the section rendered as a floating card — white
background, 12px radius, 16px padding, and a 0 8px 40px shadow — inside
the settings host's own surface, producing an unwanted inset box with a
shadow on the left edge of the settings page.

The embedded variant now uses a plain full-width flex column with no
background, radius, padding, or shadow; the modal (portal) mode keeps
the panel chrome unchanged.

Adds a regression test asserting both panels' embedded branches carry
none of the modal-only chrome.
Anans-Ivresse added a commit that referenced this pull request Aug 16, 2026
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