Skip to content

Commit cae2966

Browse files
authored
Merge pull request #13 from AnasSarkiz/main
Fix button sizing issues and update hover colors
2 parents f6f710e + 2e981ad commit cae2966

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

lib/components/settings-panel.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ export function SettingsPanel() {
330330
: "outline"
331331
}
332332
size="sm"
333+
className="w-16"
333334
onClick={() =>
334335
setDraftOptions((prev) => ({
335336
...prev,
@@ -354,6 +355,7 @@ export function SettingsPanel() {
354355
: "outline"
355356
}
356357
size="sm"
358+
className="w-16"
357359
onClick={() =>
358360
setDraftOptions((prev) => ({
359361
...prev,

lib/components/ui/button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
2222
ref,
2323
) => {
2424
const baseClasses =
25-
"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none"
25+
"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50 disabled:pointer-events-none active:scale-100"
2626

2727
const variantClasses: Record<ButtonVariant, string> = {
2828
default: "bg-primary text-primary-foreground hover:bg-primary/90",

src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
--secondary-foreground: oklch(0.15 0.01 265);
1717
--muted: oklch(0.96 0.005 265);
1818
--muted-foreground: oklch(0.45 0.01 265);
19-
--accent: oklch(0.5 0.2 180);
19+
--accent: oklch(80.78% 0.00009 271.152 / 0.99);
2020
--accent-foreground: oklch(0.98 0.005 265);
2121
--destructive: oklch(0.55 0.25 25);
2222
--destructive-foreground: oklch(0.98 0.005 265);

0 commit comments

Comments
 (0)