Skip to content
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

v1.2.15 #61

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/components/avatar/avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const Avatar = (props: IAvatar) => {
return initials.toUpperCase();
};

const defaultSvgString = renderToString(<User color="white" size={28} />);
const defaultSvgString = renderToString(<User variant="Bold" color="white" size={28} />);
const defaultImgSrc = `data:image/svg+xml;base64,${btoa(defaultSvgString)}`;
const nameLetters = name ? getInitials(name) : "";

Expand Down
6 changes: 3 additions & 3 deletions lib/customization/styles/components/avatar.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ const img = cva(["zn-block"], {
"2xs": ["zn-w-3", "zn-h-3"],
xs: ["zn-w-4", "zn-h-4"],
sm: ["zn-w-6", "zn-h-6"],
md: ["zn-w-8", "zn-h-8"],
lg: ["zn-w-12", "zn-h-12"],
xl: ["zn-w-20", "zn-h-20"],
md: ["zn-w-7", "zn-h-7"],
lg: ["zn-w-10", "zn-h-10"],
xl: ["zn-w-16", "zn-h-16"],
"2xl": ["zn-w-24", "zn-h-24"],
},
},
Expand Down
2 changes: 1 addition & 1 deletion lib/customization/styles/components/box.styles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { cva } from "class-variance-authority";

const base = cva(["zn-block"]);
const base = cva([]);

const boxStyles = {
base,
Expand Down
2 changes: 1 addition & 1 deletion lib/customization/styles/components/flex.styles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { cva } from "class-variance-authority";

const base = cva(["zn-flex"], {
const base = cva(["zn-flex", "zn-w-full"], {
variants: {
direction: {
row: ["zn-flex-row"],
Expand Down
1 change: 1 addition & 0 deletions lib/customization/styles/components/image.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const backdrop = cva([
"zn-flex",
"zn-justify-center",
"zn-items-center",
"zn-z-[9999]",
]);
const imgContainer = cva(["zn-select-none"]);
const isPreviewable = cva(["hover:zn-brightness-75", "zn-cursor-pointer"]);
Expand Down
Loading