-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
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 |
There was a problem hiding this 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" : ""}`} |
There was a problem hiding this comment.
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).
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