Skip to content

Mutxt element fixes#1031

Merged
streamich merged 7 commits into
masterfrom
mutxt-element-fixes
May 14, 2026
Merged

Mutxt element fixes#1031
streamich merged 7 commits into
masterfrom
mutxt-element-fixes

Conversation

@streamich
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 14, 2026 21:41
Copy link
Copy Markdown

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 addresses MuTxt UI styling issues by refining scoped reset behavior, font loading, element margins, and icon coloring.

Changes:

  • Centralizes Google Fonts injection and enables it for scoped reset usage.
  • Adjusts MuTxt block margins from prior reset-sensitive keys to nano-theme margin shorthand.
  • Fixes several icon/color and overlay styling details.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/ui/src/4-card/ContextMenu/ContextPane.tsx Adds default text color for context panes.
packages/nano-theme/src/scoped-reset.ts Revises scoped reset selectors and loads fonts for scoped mode.
packages/nano-theme/src/global-reset.ts Reuses shared font-loading helper and re-exports font URL.
packages/nano-theme/src/fonts.ts Adds shared Google Fonts URL and idempotent loader.
packages/mutxt-react/src/MuTxt/state/DocumentMenu.tsx Applies currentColor fill to the light theme icon.
packages/mutxt-react/src/MuTxt/MuTxt.tsx Wraps MathLive virtual keyboard container assignment in safe try/catch.
packages/mutxt-react/src/MuTxt/components/blocks/TwoColumnsElement.tsx Updates two-column block margin styling.
packages/mutxt-react/src/MuTxt/components/blocks/PreformattedElement.tsx Updates preformatted block margin styling.
packages/mutxt-react/src/MuTxt/components/blocks/ParagraphElement.tsx Updates paragraph margin styling.
packages/mutxt-react/src/MuTxt/components/blocks/ListElement.tsx Updates list and list item margin styling.
packages/mutxt-react/src/MuTxt/components/blocks/BlockquoteElement.tsx Updates blockquote margin styling.
packages/mutxt-react/src/MuTxt/block/callout/settings.tsx Wraps note icon to force currentColor path fill.
packages/mutxt-react/src/MuTxt/block/callout/CalloutElement.tsx Updates callout body margin styling.

const needsHost = displayMode === 'fullwindow' || displayMode === 'fullscreen';
const next = needsHost && mathKbdHostEl ? mathKbdHostEl : document.body;
vk.container = next;
// MathLive throws when
@streamich streamich merged commit c8913cc into master May 14, 2026
13 checks passed
@streamich streamich deleted the mutxt-element-fixes branch May 14, 2026 21:59
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