-
-
Notifications
You must be signed in to change notification settings - Fork 345
fix(ui): preview mode show the pr number #2018
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -218,6 +218,16 @@ onKeyStroke( | |
| > | ||
| <AppMark class="w-6 h-auto" /> | ||
| </NuxtLink> | ||
| <NuxtLink | ||
| v-if="!isSearchExpanded && !isOnHomePage && prNumber" | ||
| :to="`https://github.com/npmx-dev/npmx.dev/pull/${prNumber}`" | ||
| :aria-label="`Open GitHub pull request ${prNumber}`" | ||
| class="sm:hidden" | ||
| > | ||
| <span class="text-xs px-1.5 py-0.5 rounded badge-green font-sans font-medium ms-2"> | ||
| PR #{{ prNumber }} | ||
btea marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if we're internationalizing this feature, maybe "PR" should be translated as well?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMO, those who see this information on the page are usually redirected through a Premiere Pro (PR) preview link. I assume that those familiar with these operations are developers, and based on this assumption, PR seems to be a very clear abbreviation, so I don't think it needs to be translated. Of course, if you feel this reason is insufficient, we can continue to discuss it. |
||
| </span> | ||
| </NuxtLink> | ||
|
|
||
| <!-- Desktop: Logo (navigates home) --> | ||
| <div v-if="showLogo" class="hidden sm:flex flex-shrink-0 items-center"> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.