-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add strike through animation to homework #1266
Conversation
Important Auto Review SkippedDraft detected. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
@Jonas-Sander WDYT? |
Visit the preview URL for this PR (updated for commit e44959a): https://sharezone-test--pr1266-strike-through-zke4xtlo.web.app (expires Sat, 19 Oct 2024 19:43:39 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 4cb3ae61e1e018abfd9841fd3239f5b49ccc034b |
I like the idea overall. I think:
|
⬇️ Builds generated by Codemagic for commit e44959a ⬇️ Note: Only Sharezone team members are able to install the iOS app.
(expires Fri, 15 Nov 2024 19:52:40 GMT) |
overflow: TextOverflow.ellipsis, | ||
// We can only show one line of text in the title. Showing more | ||
// lines would make the strike through look weird. | ||
maxLines: 1, |
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.
We need here to make a trade-off and reduce the maxLines
from 2 to 1. I think it's okay since you normally know what the homework was when reading the first line. Otherwise, you just press on the homework and you get the full title.
Changed it to
Removed it - I was also unsure about show it there.
I kept it because striking the whole circle looked weird and not striking it also looked weird because everything gets struck expect the abbreviation on the left. |
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.
I'd personally would like the animation to be a bit quicker still, but I'm totally okay with the current state as well. LGTM!
v.mp4
ToDos:
Add option to hide strike through on completed list?Strike through for homework with submissionsUpdate tests?Is there an option to display the animation without delaying the database call(semi fixed)