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

Blog will wrap now (addressing issue # 257) #272

Merged
merged 7 commits into from
Apr 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 3 additions & 3 deletions client/src/views/EditBlogList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ const EditBlogList = () => {
{rBlogPosts.map((post, index) => (
<div key={post._id}>
<div className="bg-camel px-2 py-2 text-lg mb-4">
<h2 className="text-xl font-bold">{post.title}</h2>
<p>{post.post}</p>
</div>
<h2 className="text-xl font-bold break-all">{post.title}</h2>
<p className="whitespace-normal break-all">{post.post}</p>
</div>
</div>
))}
</div>
Expand Down
6 changes: 3 additions & 3 deletions client/src/views/EditBlogPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ const EditBlogpage = ({ userRole }) => {
{rBlogPosts.map((post, index) => (
<div key={post._id}>
<div className="bg-camel px-2 py-2 text-lg mb-4">
<h2 className="text-xl font-bold">{post.title}</h2>
<p>{post.post}</p>
<h2 className="text-xl font-bold break-all">{post.title}</h2>
<p className="whitespace-normal break-all">{post.post}</p>
</div>
<button
className=" bg-black text-white py-2 px-4 rounded my-4 focus:shadow-outline"
className="bg-black text-white py-2 px-4 rounded my-4 focus:shadow-outline whitespace-normal break-all"
onClick={() => handleDelete(post._id, index)}
>
Delete {post.title}
Expand Down