fix: add correct size properties to novitaAI icon (#6001)

fix novita AI icon
This commit is contained in:
Cristhian Zanforlin Lousa 2025-01-29 15:28:10 -03:00 committed by GitHub
commit ccce11891d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 16 additions and 33 deletions

View file

@ -836,6 +836,7 @@
},
"node_modules/@clack/prompts/node_modules/is-unicode-supported": {
"version": "1.3.0",
"extraneous": true,
"inBundle": true,
"license": "MIT",
"engines": {

View file

@ -1,3 +1,4 @@
import { useDarkStore } from "@/stores/darkStore";
import React, { forwardRef } from "react";
import SvgNovita from "./novita";
@ -5,5 +6,7 @@ export const NovitaIcon = forwardRef<
SVGSVGElement,
React.PropsWithChildren<{}>
>((props, ref) => {
return <SvgNovita ref={ref} {...props} />;
const isdark = useDarkStore((state) => state.dark).toString();
return <SvgNovita ref={ref} {...props} isdark={isdark} />;
});

View file

@ -1,28 +1,17 @@
const SvgNovita = (props) => (
<svg
width="188"
height="188"
viewBox="0 0 188 188"
fill="none"
xmlns="http://www.w3.org/2000/svg"
width="30px"
height="30px"
fill="currentColor"
fillRule="evenodd"
style={{ flex: "none", lineHeight: "1" }}
viewBox="0 0 24 24"
>
<rect width="188" height="188" fill="white" />
<g clip-path="url(#clip0_1987_17498)">
<path
d="M71.8103 36V80.3795L0 152.19H71.8103V107.808L116.194 152.19H188L71.8103 36Z"
fill="black"
/>
</g>
<defs>
<clipPath id="clip0_1987_17498">
<rect
width="188"
height="116.19"
fill="white"
transform="translate(0 36)"
/>
</clipPath>
</defs>
<path
d="M9.167 4.17v5.665L0 19.003h9.167v-5.666l5.666 5.666H24z"
clipRule="evenodd"
></path>
</svg>
);
export default SvgNovita;

View file

@ -1,11 +1 @@
<svg width="188" height="188" viewBox="0 0 188 188" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="188" height="188" fill="white"/>
<g clip-path="url(#clip0_1987_17498)">
<path d="M71.8103 36V80.3795L0 152.19H71.8103V107.808L116.194 152.19H188L71.8103 36Z" fill="black"/>
</g>
<defs>
<clipPath id="clip0_1987_17498">
<rect width="188" height="116.19" fill="white" transform="translate(0 36)"/>
</clipPath>
</defs>
</svg>
<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Novita AI</title><path clip-rule="evenodd" d="M9.167 4.17v5.665L0 19.003h9.167v-5.666l5.666 5.666H24L9.167 4.17z"></path></svg>

Before

Width:  |  Height:  |  Size: 435 B

After

Width:  |  Height:  |  Size: 291 B

Before After
Before After