Skip to content

Hide external link icon on Universe navbar item; fix Browse links spacing#7

Merged
OrangeX4 merged 3 commits intomainfrom
copilot/update-touying-submodule
Mar 9, 2026
Merged

Hide external link icon on Universe navbar item; fix Browse links spacing#7
OrangeX4 merged 3 commits intomainfrom
copilot/update-touying-submodule

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 9, 2026

Two cosmetic issues on the homepage: the "Universe" navbar link showed an unwanted external-link arrow icon, and "Browse themes →" / "Browse universe →" were rendered flush against each other with no gap.

Changes

  • docusaurus.config.js — Add className: 'navbar--universe-link' to the Universe navbar item as a CSS hook.
  • src/css/custom.css — Suppress the auto-injected Docusaurus external-link SVG for that item:
    .navbar--universe-link svg {
      display: none;
    }
  • src/components/HomepageFeatures/index.js — Wrap the primary and secondary feature card links in a container <div> instead of emitting them as adjacent inline elements.
  • src/components/HomepageFeatures/styles.module.css — Add .featureLinks { display: flex; flex-wrap: wrap; gap: 0.75rem; } to space the links apart.

Before / After

Before After
Universe with external arrow icon before Universe — no icon
Browse themes →Browse universe → flush together Browse themes → · Browse universe → with gap

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: OrangeX4 <34951714+OrangeX4@users.noreply.github.com>
Copilot AI changed the title [WIP] Update touying submodule to latest version Add Typst Universe search links and update touying submodule Mar 9, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 9, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-03-09 08:18 UTC

Co-authored-by: OrangeX4 <34951714+OrangeX4@users.noreply.github.com>
Copilot AI changed the title Add Typst Universe search links and update touying submodule Hide external link icon on Universe navbar item; fix Browse links spacing Mar 9, 2026
@OrangeX4 OrangeX4 marked this pull request as ready for review March 9, 2026 08:17
Copilot AI review requested due to automatic review settings March 9, 2026 08:17
@OrangeX4 OrangeX4 merged commit c58b7d8 into main Mar 9, 2026
3 of 4 checks passed
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 fixes two cosmetic issues on the homepage: suppressing an unwanted external-link icon on the "Universe" navbar item, and adding proper spacing between "Browse themes →" and "Browse universe →" feature card links.

Changes:

  • Add CSS class hook to the Universe navbar item and suppress its auto-injected SVG icon.
  • Wrap feature card links in a flex container with gap styling.
  • Add a secondary link ("Browse universe") to the themes feature card.

Reviewed changes

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

Show a summary per file
File Description
docusaurus.config.js Adds className to Universe navbar item; updates a footer link URL; adds Universe to footer nav.
src/css/custom.css Hides the external-link SVG for the Universe navbar item.
src/components/HomepageFeatures/index.js Adds secondaryLink/secondaryLinkLabel props and wraps links in a container div.
src/components/HomepageFeatures/styles.module.css Adds .featureLinks flex container style.
touying Bumps the touying git submodule to a newer commit.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

</Link>
)}
{secondaryLink && (
<Link className={styles.featureLink} to={secondaryLink}>
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Docusaurus <Link> component's to prop is intended for internal (relative) paths. For external URLs like https://typst.app/universe/search/?q=touying, the href prop should be used instead. Using to with an absolute URL may result in incorrect routing behavior (e.g., the URL being treated as a relative path).

Copilot uses AI. Check for mistakes.
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.

3 participants