Skip to content

Commit

Permalink
fix: minor style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sunaurus committed Apr 14, 2024
1 parent ee6c479 commit 6f4a7c6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/app/(ui)/form/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export const Input = ({ className, ...rest }: Props) => {
return (
<input
className={classNames(
`autofill:bg-primary-700 focus:border-primary-500 focus:ring-primary-500 text-md
block rounded border border-neutral-600 bg-neutral-700 p-2 text-neutral-200
placeholder-neutral-400 focus:outline-none disabled:brightness-50`,
`text-md block rounded border border-neutral-600 bg-neutral-700 p-2
text-neutral-200 placeholder-neutral-400 autofill:bg-primary-700
focus:border-primary-500 focus:outline-none focus:ring-0 disabled:brightness-50`,
{ "w-full": rest.type !== "checkbox" },
{ "text-primary-400": rest.type === "checkbox" },
className,
Expand Down
6 changes: 3 additions & 3 deletions src/app/(ui)/form/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export const Select = ({ className, ...rest }: Props) => {
return (
<select
className={classNames(
`autofill:bg-primary-700 focus:border-primary-500 focus:ring-primary-500 text-md
block rounded border border-neutral-600 bg-neutral-700 p-2 text-neutral-200
placeholder-neutral-400 focus:outline-none`,
`text-md block rounded border border-neutral-600 bg-neutral-700 p-2
text-neutral-200 placeholder-neutral-400 autofill:bg-primary-700
focus:border-primary-500 focus:outline-none focus:ring-0`,
{ "w-full": rest.type !== "checkbox" },
{ "text-primary-400": rest.type === "checkbox" },
className,
Expand Down
2 changes: 1 addition & 1 deletion src/app/(ui)/form/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const TextArea = ({ className, ...rest }: TextAreaProps) => {
className={classNames(
`block w-full rounded border border-neutral-600 bg-neutral-700 p-2 text-sm
text-white placeholder-neutral-400 autofill:bg-primary-700
focus:border-primary-500 focus:outline-none focus:ring-primary-500`,
focus:border-primary-500 focus:outline-none focus:ring-0`,
className,
)}
{...rest}
Expand Down
4 changes: 2 additions & 2 deletions src/app/(ui)/markdown/MarkdownTextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export const MarkdownTextArea = (
<TextArea
{...passThroughProps}
className={classNames(
"mt-0 rounded-none rounded-b pt-0",
"mt-0 rounded-none rounded-b p-1",
textAreaClassName,
)}
disabled={uploading}
Expand All @@ -297,7 +297,7 @@ export const MarkdownTextArea = (
props.textAreaClassName,
)}
>
<Markdown content={value} />
<Markdown content={value || "(Nothing to preview yet)"} />
</div>
)}
{uploading && (
Expand Down
8 changes: 4 additions & 4 deletions src/app/post/PostThumbnail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ export const PostThumbnail = memo(
<div
className={classNames(
`relative ml-1 flex h-[70px] min-h-[70px] w-[70px] min-w-[70px] items-center
justify-center overflow-hidden rounded bg-neutral-600`,
justify-center overflow-hidden rounded bg-neutral-800`,
props.className,
)}
>
{src ? (
<>
<ThumbnailImage props={props} src={src} />
{<PhotoIcon className={"h-8 text-neutral-900"} />}
{<PhotoIcon className={"h-8 text-neutral-500"} />}
</>
) : props.post.url ? (
<LinkIcon className={"h-8 text-neutral-900"} />
<LinkIcon className={"h-8 text-neutral-500"} />
) : (
<ChatBubbleBottomCenterTextIcon className={"h-8 text-neutral-900"} />
<ChatBubbleBottomCenterTextIcon className={"h-8 text-neutral-500"} />
)}
{hasExpandableMedia(props.post) && (
<ExpandOverlay
Expand Down

0 comments on commit 6f4a7c6

Please sign in to comment.