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

Read more button added when text overflow on card #693

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
read more bitton hover effect added
  • Loading branch information
Isha988 committed May 24, 2023
commit b9516eb7911843a2a29fcfc9efb201e27655cc95
2 changes: 1 addition & 1 deletion components/Cards/Card.tsx
rupali-codes marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Card: FC<{ data: IData }> = (props) => {
<p ref={descriptionRef} className="h-24 w-full overflow-hidden font-sans text-ellipsis line-clamp-4">{description}</p>
{
(isOverflow) &&
<p className="text-sm underline text-violet-600 dark:text-violet-400" >read more...</p>
<p className="text-sm underline text-violet-600 dark:text-violet-400 text-right hover:text-violet-400 dark:hover:text-violet-300" >read more...</p>
Isha988 marked this conversation as resolved.
Show resolved Hide resolved
}
</div>
<footer className="card-actions justify-end">
Expand Down