Skip to content

Commit

Permalink
💄 style: Fix Cursor icon
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Nov 27, 2024
1 parent 256c669 commit 8d8aee7
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env sh

npm run build:toc
git add .
npm run type-check
npx --no-install lint-staged
Binary file modified packages/static-png/dark/cursor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/static-svg/icons/cursor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/static-webp/light/cursor.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/svgWorkflow/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const themeColors = {
};

class SvgWorkflow {
ignoreList = ['dify.svg', 'dify-color.svg'];
ignoreList = ['cursor.svg', 'dify.svg', 'dify-color.svg'];

exportSvg(Component: ComponentType, outputFileName: string): void {
const svgString = renderToStaticMarkup(createElement(Component));
Expand Down
11 changes: 8 additions & 3 deletions src/components/Dashboard/IconItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const IconItem = memo<IconItemProps>(({ children, title, color, id }) => {
const url = URL.createObjectURL(blob);
const downloadLink = document.createElement('a');
downloadLink.href = url;
downloadLink.download = 'icon.svg';
downloadLink.download = `${id.toLowerCase()}.svg`;
document.body.append(downloadLink);
downloadLink.click();
downloadLink.remove();
Expand Down Expand Up @@ -132,9 +132,14 @@ const IconItem = memo<IconItemProps>(({ children, title, color, id }) => {
</Center>
<Flexbox flex={1} horizontal paddingInline={12}>
<Center flex={1} height={32}>
<Link style={{ color: 'inherit' }} to={`/components/${customKebabCase(id)}`}>
<a
href={`https://lobehub.com/icons/${customKebabCase(id)}`}
rel="noreferrer"
style={{ color: 'inherit' }}
target={'_blank'}
>
<ActionIcon icon={SearchIcon} size={'small'} />
</Link>
</a>
</Center>
<Center flex={1} height={32} onClick={handleDownload}>
<ActionIcon icon={DownloadIcon} size={'small'} />
Expand Down

0 comments on commit 8d8aee7

Please sign in to comment.