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

Commit79ef7a8

Browse files
committed
last bits of touching up
1 parent06c166d commit79ef7a8

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

‎site/src/pages/IconsPage/IconsPage.tsx

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,15 @@ import { type ReactNode, useMemo, useState } from "react";
99
importuFuzzyfrom"ufuzzy";
1010
import{CopyableValue}from"components/CopyableValue/CopyableValue";
1111
import{Margins}from"components/Margins/Margins";
12-
import{PageHeader,PageHeaderTitle}from"components/PageHeader/PageHeader";
12+
import{
13+
PageHeader,
14+
PageHeaderSubtitle,
15+
PageHeaderTitle,
16+
}from"components/PageHeader/PageHeader";
1317
import{Stack}from"components/Stack/Stack";
1418
importiconsfrom"theme/icons.json";
19+
import{Box,Link}from"@mui/material";
20+
import{EmptyState}from"components/EmptyState/EmptyState";
1521

1622
consticonsWithoutSuffix=icons.map((icon)=>icon.split(".")[0]);
1723
constfuzzyFinder=newuFuzzy({
@@ -61,8 +67,33 @@ export default function () {
6167

6268
return(
6369
<Margins>
64-
<PageHeader>
70+
<PageHeader
71+
actions={
72+
<Tooltip
73+
placement="bottom-end"
74+
title={
75+
<Box
76+
css={{
77+
padding:theme.spacing(1),
78+
fontSize:13,
79+
lineHeight:1.5,
80+
}}
81+
>
82+
You can suggest a new icon by submitting a Pull Request to our
83+
public GitHub repository. Just keep in mind that it should be
84+
relevant to many Coder users, and redistributable under a
85+
permissive license.
86+
</Box>
87+
}
88+
>
89+
<Linkhref="">Suggest an icon</Link>
90+
</Tooltip>
91+
}
92+
>
6593
<PageHeaderTitle>Icons</PageHeaderTitle>
94+
<PageHeaderSubtitle>
95+
All of the icons included with Coder
96+
</PageHeaderSubtitle>
6697
</PageHeader>
6798
<TextField
6899
size="small"
@@ -113,6 +144,9 @@ export default function () {
113144
justifyContent="center"
114145
css={(theme)=>({marginTop:theme.spacing(4)})}
115146
>
147+
{searchedIcons.length===0&&(
148+
<EmptyStatemessage="No results matched your search"/>
149+
)}
116150
{searchedIcons.map((icon)=>(
117151
<CopyableValuekey={icon.url}value={icon.url}placement="bottom">
118152
<StackalignItems="center"css={{margin:theme.spacing(1.5)}}>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp