Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add auto-apply markdown features on editor: Enable WYSIWYG #1068

Merged
merged 6 commits into from
Oct 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
format the files
nawinsharma committed Oct 5, 2024
commit 17cf5c709368e7860cc33e4542689912ea2ecbbb
5 changes: 3 additions & 2 deletions app/(app)/articles/_client.tsx
Original file line number Diff line number Diff line change
@@ -79,10 +79,11 @@ const ArticlesPage = () => {
<select
id="filter"
name="filter"
className="mt-2 dark:bg-neutral-800 block w-full rounded border-neutral-300 py-1 pl-3 pr-10 text-sm leading-6 focus:ring-2 focus:ring-pink-600 dark:border-neutral-600"
className="mt-2 block w-full rounded border-neutral-300 py-1 pl-3 pr-10 text-sm leading-6 focus:ring-2 focus:ring-pink-600 dark:border-neutral-600 dark:bg-neutral-800"
onChange={(e) => {
router.push(
`/articles?filter=${e.target.value}${tag ? `&tag=${tag}` : ""
`/articles?filter=${e.target.value}${
tag ? `&tag=${tag}` : ""
}`,
);
}}
2 changes: 1 addition & 1 deletion app/(app)/create/[[...paramsArr]]/_client.tsx
Original file line number Diff line number Diff line change
@@ -638,7 +638,7 @@ const Create = ({ session }: { session: Session }) => {
<div className="h-full px-4 py-0 sm:px-6 lg:px-4 lg:py-6 ">
{/* Start main area*/}
<div className="relative h-full">
<div className="bg-white text-white shadow dark:bg-neutral-900">
<div className="bg-white text-black shadow dark:bg-neutral-900 dark:text-white">
{viewPreview ? (
<section className="mx-auto max-w-xl px-4 py-6 pb-4 sm:p-6 lg:pb-8">
<article
2 changes: 1 addition & 1 deletion components/Tabs/index.tsx
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ export function Tabs(props: Props) {
<select
id="tabs"
name="tabs"
className="block w-full bg-white dark:bg-neutral-900 rounded-md border-neutral-300 focus:border-neutral-500 focus:ring-neutral-500"
className="block w-full rounded-md border-neutral-300 bg-white focus:border-neutral-500 focus:ring-neutral-500 dark:bg-neutral-900"
defaultValue={tabs.find((tab) => tab.current)?.name || tabs[0].name}
onChange={(e) => {
router.push(e.target.value);