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

Mod/library card textarea #41

Merged
merged 5 commits into from
Mar 22, 2024
Merged

Mod/library card textarea #41

merged 5 commits into from
Mar 22, 2024

Conversation

MarkTrepanier
Copy link
Collaborator

These changes provide a better functionality to the libraryCard textarea text. This replaces my complicated js truncation with CSS using -webkit-line-clamp. These changes may not be great in all browsers.

The previous truncation only allowed a working visual of one line followed by ellipsis

Screenshot 2024-02-25 122222
Screenshot 2024-02-25 122254
Screenshot 2024-02-25 122309

Copy link

github-actions bot commented Feb 25, 2024

Visit the preview URL for this PR (updated for commit 116fc98):

https://dmkit-e7e99--pr41-mod-librarycardtexta-rpolk2fn.web.app

(expires Mon, 25 Mar 2024 08:33:55 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 310a7f1d940a0f8f9346804f5fc60f8ba2a4f18d

@rayzhou-bit rayzhou-bit self-requested a review February 27, 2024 00:32
Copy link
Owner

@rayzhou-bit rayzhou-bit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The LibraryCard seems to move up a little bit in its expanded form compared to its collapsed form.

className="library-card-textarea"
isSelected={isSelected}
lib={true}
className={`library-card-textarea ${isSelected ? "selected" : ""}`}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you pull out the code from ContentTextarea into LibraryCard? (And delete ContentTextarea).

@rayzhou-bit rayzhou-bit self-requested a review March 19, 2024 10:12
@rayzhou-bit rayzhou-bit merged commit 8388d94 into master Mar 22, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants