Skip to content

Commit

Permalink
add mobile view to blog list
Browse files Browse the repository at this point in the history
  • Loading branch information
houseplayer committed Dec 5, 2024
1 parent f5d0989 commit 95ab497
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/actions/emailActions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use server';

import { sendEmailSchema, SendEmailSchema } from '@/components/emailForm/schema';
import { sendEmailSchema, SendEmailSchema } from '@/components/EmailForm/schema';
import { validateData } from '@/utils/validateData';
import { transporter } from '../../lib/nodemailer';
import { getSubscribersEmails } from '@/utils/getSubscribers';
Expand Down
2 changes: 1 addition & 1 deletion src/app/admin/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import EmailForm from '@/components/emailForm';
import EmailForm from '@/components/EmailForm';
import SubscribersList from '@/components/Subscribers/SubscribersList';
import { getSubscribers } from '@/utils/getSubscribers';
import { routes, userRole } from '@/utils/enums';
Expand Down
7 changes: 5 additions & 2 deletions src/app/blog/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ const Layout = async ({ children }: { children: ReactNode }) => {
href={`${routes.blog}/${id}`}
className="block border-b-1 first-of-type:border-t-1 border-gray-400 py-1 hover:bg-gray-100"
>
<li className="flex justify-between">
<li className="flex justify-between flex-col xs:flex-row">
<div>{title}</div>
<div>
{categories.map((category) => (
<span className="bg-gray-300 rounded ml-2 text-[0.6rem] px-2 py-1" key={category}>
<span
className="inline-block bg-gray-300 rounded mr-2 my-1 text-[0.6rem] px-2 py-1"
key={category}
>
{category}
</span>
))}
Expand Down
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ module.exports = {
borderWidth: {
1: '1px',
},
screens: {
xs: '440px',
},
},
},
plugins: [],
Expand Down

0 comments on commit 95ab497

Please sign in to comment.