Skip to content

Commit 34c737c

Browse files
committed
fix: minor style tweaks
1 parent a661944 commit 34c737c

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

src/app/(ui)/button/Button.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export const getButtonClassnames = (props: ButtonProps) => {
2929
`flex flex-wrap justify-center rounded border p-1.5 text-${props.size ?? "sm"}
3030
min-w-24 font-semibold text-white shadow-sm hover:brightness-125
3131
focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2`,
32-
props.className,
3332
{
3433
"border-neutral-600 bg-neutral-500 focus-visible:outline-neutral-600":
3534
!props.color || props.color === "neutral",
@@ -39,5 +38,6 @@ export const getButtonClassnames = (props: ButtonProps) => {
3938
props.color === "danger",
4039
},
4140
{ "p-1.5": props.size === "xs", "p-2": props.size === "md" },
41+
props.className,
4242
);
4343
};

src/app/communities/SubscribeButton.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ export const SubscribeButton = (props: {
2424
props.communityName,
2525
)}
2626
>
27-
<SubmitButton className={"ml-auto w-full"} color={"danger"}>
27+
<SubmitButton
28+
className={"ml-auto w-full max-w-[267px]"}
29+
color={"danger"}
30+
>
2831
{"Unsubscribe"}
2932
</SubmitButton>
3033
</form>

src/app/inbox/InboxMention.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const InboxMention = (props: {
3737
>
3838
<SubmitButton
3939
className={classNames(
40-
`items-center gap-1 border-0 bg-transparent p-0 !text-neutral-300
40+
`items-center gap-1 border-0 bg-transparent !p-0 !text-neutral-300
4141
hover:brightness-125`,
4242
{ "!text-primary-300": !read },
4343
)}

src/app/inbox/InboxPrivateMessage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const InboxPrivateMessage = (props: {
4242
>
4343
<SubmitButton
4444
className={classNames(
45-
`items-center gap-1 border-0 bg-transparent p-0 !text-neutral-300
45+
`items-center gap-1 border-0 bg-transparent !p-0 !text-neutral-300
4646
hover:brightness-125`,
4747
{ "!text-primary-300": !read },
4848
)}

src/app/inbox/InboxReply.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const InboxReply = (props: {
3737
>
3838
<SubmitButton
3939
className={classNames(
40-
`items-center gap-1 border-0 bg-transparent p-0 !text-neutral-300
40+
`items-center gap-1 border-0 bg-transparent !p-0 !text-neutral-300
4141
hover:brightness-125`,
4242
{ "!text-primary-300": !read },
4343
)}

src/app/inbox/PrivateMessage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const PrivateMessage = (props: {
5454
return (
5555
<div
5656
className={classNames("mr-2 flex items-start", {
57-
"text-neutral-400": isOwnMessage,
57+
"text-neutral-500": isOwnMessage,
5858
})}
5959
id={`message-${props.privateMessageView.private_message.id}`}
6060
>

0 commit comments

Comments
 (0)