-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug Fix: Delete feature (Fixes three issues) (#3383)
Fixes: #3267 Fixes: #3306 Fixes: #3378 Regarding: #3267 Some of the z-indices were manged by zIndex parameter, while other components where managed by Portals. Somehow the two conflicted and created a weird mix of zIndices. I have changed popover's portal into simple zindex parameter and parents, sibligns, and cousins accordingly. Regarding: #3306 The redirection to deleted chat happened because one of its parent elements were a Link component. Previously, upon pressing delete, stopEvent() was called to temporarily pause redirection, and redirection would resume after the delete process. I have changed the Link component into normal button with onClick redirection, maintaining the stopPropogation behavior. Regarding: #3378 The default behavior of AlertDialog would wrap the text. But somehow using portal on it would restrict text-wrap behavior. The text-wrap behavior came back after removal of portal while working on #3267 . deleting from /chat/{id} <img width="1466" alt="image" src="https://github.com/LAION-AI/Open-Assistant/assets/61619422/7faa1895-7894-41c3-ab57-5489db942641"> deleting from /chat <img width="1440" alt="image" src="https://github.com/LAION-AI/Open-Assistant/assets/61619422/d7b4494f-02f4-4953-bcd3-bf1c25de3b8f"> toast on delete <img width="368" alt="image" src="https://github.com/LAION-AI/Open-Assistant/assets/61619422/6ed228f1-64d3-4169-9657-aaff4e97ce06"> --------- Co-authored-by: notmd <notmd1811@gmail.com>
- Loading branch information
1 parent
470fbe9
commit 1f0113f
Showing
9 changed files
with
66 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters