diff --git a/client/app/(posts)/components/file-dropdown/dropdown.module.css b/client/app/(posts)/components/file-dropdown/dropdown.module.css
index 9d2f48ae..116596e1 100644
--- a/client/app/(posts)/components/file-dropdown/dropdown.module.css
+++ b/client/app/(posts)/components/file-dropdown/dropdown.module.css
@@ -60,7 +60,7 @@
}
.chevron {
- transition: transform 0.2s ease-in-out;
+ transition: transform 0.1s ease-in-out;
}
[data-state="open"] .chevron {
diff --git a/client/app/(posts)/components/preview/index.tsx b/client/app/(posts)/components/preview/index.tsx
index 384d9477..4b27b6c4 100644
--- a/client/app/(posts)/components/preview/index.tsx
+++ b/client/app/(posts)/components/preview/index.tsx
@@ -2,7 +2,8 @@ import { memo, useEffect, useState } from "react"
import styles from "./preview.module.css"
import "@styles/markdown.css"
import "@styles/syntax.css"
-import { Spinner } from "@geist-ui/core/dist"
+import Skeleton from "@components/skeleton"
+import { Spinner } from "@components/spinner"
type Props = {
height?: number | string
@@ -52,9 +53,7 @@ const MarkdownPreview = ({
return (
<>
{isLoading ? (
- <>
-
- Drag some files here, or {verb} to select files + Drag some files here, or to select files
)} {isDragActive &&Release to drop the files here
} diff --git a/client/app/(posts)/new/components/edit-document-list/edit-document/document.module.css b/client/app/(posts)/new/components/edit-document-list/edit-document/document.module.css index a343ffac..99c75125 100644 --- a/client/app/(posts)/new/components/edit-document-list/edit-document/document.module.css +++ b/client/app/(posts)/new/components/edit-document-list/edit-document/document.module.css @@ -1,7 +1,7 @@ .card { margin: var(--gap) auto; padding: var(--gap); - border: 1px solid var(--light-gray); + border: 1px solid var(--lighter-gray); border-radius: var(--radius); } diff --git a/client/app/(posts)/new/components/edit-document-list/edit-document/formatting-icons/formatting-icons.module.css b/client/app/(posts)/new/components/edit-document-list/edit-document/formatting-icons/formatting-icons.module.css index 5a602add..e7b98c22 100644 --- a/client/app/(posts)/new/components/edit-document-list/edit-document/formatting-icons/formatting-icons.module.css +++ b/client/app/(posts)/new/components/edit-document-list/edit-document/formatting-icons/formatting-icons.module.css @@ -6,7 +6,7 @@ .actionWrapper .actions { position: absolute; right: 0; - top: -34px; + top: -40px; } /* small screens, top: 0 */ diff --git a/client/app/(posts)/new/components/new.tsx b/client/app/(posts)/new/components/new.tsx index 91a89939..d0564813 100644 --- a/client/app/(posts)/new/components/new.tsx +++ b/client/app/(posts)/new/components/new.tsx @@ -1,6 +1,5 @@ "use client" -import { useToasts, ButtonDropdown } from "@geist-ui/core/dist" import { useRouter } from "next/navigation" import { useCallback, useState } from "react" import generateUUID from "@lib/generate-uuid" @@ -16,6 +15,8 @@ import Title from "./title" import FileDropzone from "./drag-and-drop" import Button from "@components/button" import Input from "@components/input" +import ButtonDropdown from "@components/button-dropdown" +import { useToasts } from "@components/toasts" const emptyDoc = { title: "", content: "", @@ -87,7 +88,8 @@ const Post = ({ const json = await res.json() console.error(json) setToast({ - text: "Please fill out all fields", + id: "error", + message: "Please fill out all fields", type: "error" }) setPasswordModalVisible(false) @@ -114,7 +116,7 @@ const Post = ({ if (!title) { setToast({ - text: "Please fill out the post title", + message: "Please fill out the post title", type: "error" }) hasErrored = true @@ -122,7 +124,7 @@ const Post = ({ if (!docs.length) { setToast({ - text: "Please add at least one document", + message: "Please add at least one document", type: "error" }) hasErrored = true @@ -131,7 +133,7 @@ const Post = ({ for (const doc of docs) { if (!doc.title) { setToast({ - text: "Please fill out all the document titles", + message: "Please fill out all the document titles", type: "error" }) hasErrored = true @@ -308,19 +310,27 @@ const Post = ({ enableTabLoop={false} minDate={new Date()} /> -