-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Make toast support preventDuplicates #31501
Conversation
As I said, I think this is suboptimal UX because it makes it harder then necessary to copy text out a toast that re-creates for example every 1-2 seconds. I think it's better to have a counter instead that shows the number of times a toast has triggered. Could be as simple as appending |
|
Looks quite good but I noticed that the animation only plays when it goes from 1 to 2, but not from 2 to 3 or later, is it intentional? |
Co-authored-by: silverwind <[email protected]>
It works on my side, and the code seems right. |
Subsequent animations work for me only in Chrome, not in Firefox. |
Could you add to devtest a second row of buttons that generates different messages? |
|
Nice fix. Can you add |
Added |
before: |
I don't want to play with the pixel-level tricks here. The UI doesn't really look problematic and it doesn't cause problems. I think it could be fine-tuned later. |
Not sure if vertical alignment of first line is easily possible because the text can be multiline. |
* giteaofficial/main: Fix avatar radius problem on the new issue page (go-gitea#31506) Make toast support preventDuplicates (go-gitea#31501) Improve attachment upload methods (go-gitea#30513)
make preventDuplicates default to true, users get a clear UI feedback and know that "a new message appears".
Fixes: #26651