Skip to content

Commit a957487

Browse files
committed
Refactor button sizes and icon dimensions for improved consistency in signature output component
1 parent 10c114e commit a957487

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/components/generator/signature-output.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ export const SignatureOutput = (props: GeneratorReducerState['config'] & Generat
3131
<h3 className="text-lg font-semibold text-zinc-100">Signature Preview</h3>
3232

3333
<div className="flex flex-nowrap items-center justify-end gap-4">
34-
<Button size="sm" rounded="md" onClick={handleCopyHtml}>
34+
<Button size="md" rounded="md" onClick={handleCopyHtml}>
3535
<Icon icon="copy" size="sm" />
3636
HTML
3737
</Button>
3838

39-
<Button size="sm" rounded="md" onClick={handleCopyRichText}>
39+
<Button size="md" rounded="md" onClick={handleCopyRichText}>
4040
<Icon icon="copy" size="sm" />
4141
Rich Text
4242
</Button>

src/components/generic/button.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ type ButtonSize = typeof BUTTON_SIZE[keyof typeof BUTTON_SIZE];
1212
const getButtonSizeClass = (size: ButtonSize) => {
1313
switch (size) {
1414
case BUTTON_SIZE.sm:
15-
return "px-4 py-1 text-sm font-medium";
15+
return "px-3 py-1.5 text-xs font-medium";
1616
case BUTTON_SIZE.md:
17-
return "px-4 py-2 text-base font-medium";
17+
return "px-4 py-2 text-sm font-medium";
1818
case BUTTON_SIZE.lg:
19-
return "px-6 py-3 text-lg font-medium";
19+
return "px-6 py-3 text-base font-medium";
2020
case BUTTON_SIZE.icon:
2121
return "p-2";
2222
}

src/components/generic/icon/icon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const ICON_SIZE = {
1212
type IconSize = typeof ICON_SIZE[keyof typeof ICON_SIZE];
1313

1414
const ICON_SIZE_CLASS = {
15-
sm: "w-4 h-4",
15+
sm: "w-3 h-3",
1616
md: "w-5 h-5",
1717
lg: "w-6 h-6",
1818
xl: "w-8 h-8",

0 commit comments

Comments
 (0)