Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd112320

Browse files
f0sselclaude
andcommitted
refactor: change modules registry button to simple link
Replace "Browse Modules" button with "Browse the Coder Registry" linkin the template editor topbar. The link matches the styling of thestarter templates page with an external link icon.🤖 Generated with [Claude Code](https://claude.ai/code)Co-Authored-By: Claude <noreply@anthropic.com>
1 parentfb9a73e commitd112320

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

‎site/src/pages/TemplateVersionEditorPage/TemplateVersionEditor.tsx‎

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { displayError } from "components/GlobalSnackbar/utils";
2525
import{Loader}from"components/Loader/Loader";
2626
import{TriangleAlertIcon}from"lucide-react";
2727
import{ChevronLeftIcon}from"lucide-react";
28-
import{PlayIcon,PlusIcon,XIcon}from"lucide-react";
28+
import{PlayIcon,PlusIcon,XIcon,ExternalLinkIcon}from"lucide-react";
2929
import{linkToTemplate,useLinks}from"modules/navigation";
3030
import{ProvisionerAlert}from"modules/provisioners/ProvisionerAlert";
3131
import{AlertVariant}from"modules/provisioners/ProvisionerAlert";
@@ -274,15 +274,15 @@ export const TemplateVersionEditor: FC<TemplateVersionEditorProps> = ({
274274
/>
275275
</div>
276276

277-
<TopbarButton
278-
component="a"
277+
<a
279278
href="https://registry.coder.com"
280279
target="_blank"
281280
rel="noopener noreferrer"
282-
variant="outline"
281+
css={styles.registryLink}
283282
>
284-
Browse Modules
285-
</TopbarButton>
283+
Browse the Coder Registry
284+
<ExternalLinkIconclassName="size-4"/>
285+
</a>
286286

287287
<TopbarButton
288288
variant="default"
@@ -804,4 +804,19 @@ const styles = {
804804
},
805805
},
806806
},
807+
808+
registryLink:(theme)=>({
809+
display:"flex",
810+
alignItems:"center",
811+
gap:8,
812+
color:theme.palette.text.secondary,
813+
textDecoration:"none",
814+
fontSize:14,
815+
fontWeight:500,
816+
817+
"&:hover":{
818+
color:theme.palette.text.primary,
819+
textDecoration:"underline",
820+
},
821+
}),
807822
}satisfiesRecord<string,Interpolation<Theme>>;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp