mirror of
https://github.com/outline/outline.git
synced 2026-11-21 05:24:03 +03:00
* fix: Crash opening document menu on mobile The heading numbering submenu added to the document display options is rendered through the `append` slot of `DropdownMenu`. On desktop that slot lands inside the menu content, but on mobile it is rendered into a drawer, which has no menu root for the Radix submenu primitives to attach to — so opening the document overflow menu on mobile threw "`MenuSub` must be used within `Menu`" and took down the page. Flatten the submenu into an inline group of options on mobile, matching the toggles it sits alongside. Fixes OUTLINE-CLOUD-D1X Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V5ExrfehTYgotb8d2aoMvK * fix: Match heading prefix color to the heading anchor The heading numbering prefix was drawn with the secondary text color while the `#` anchor beside it uses the primary text color at 75% opacity. The two read as the same tone in light mode, but diverge visibly in dark mode where the primary text color is much brighter. Draw the prefix from the same color and opacity as the anchor so the two match in both themes. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V5ExrfehTYgotb8d2aoMvK * fix: Heading prefix missing when printing The print stylesheet hides the heading pseudo element to keep the H1–H6 level labels out of print. That pseudo element also carries the heading numbering prefix, so printing or exporting a numbered document dropped its numbers. Qualify the print selectors the same way the level labels themselves are, so only the labels are hidden and the prefix still prints. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V5ExrfehTYgotb8d2aoMvK * Update Styles.ts