A lot of Diagram Fixes as well as other code changes #70

Merged
Ghost merged 9 commits from diagram-fixes into main 2024-01-25 01:01:11 +00:00
Showing only changes of commit 37cc6831a6 - Show all commits

View File

@@ -16,8 +16,8 @@ The component accepts the following props:
- Copy Action: When the copy icon is clicked, the component: - Copy Action: When the copy icon is clicked, the component:
- Prioritizes copying the text from the textToCopy prop if it's provided and not an empty string. - Prioritizes copying the text from the `textToCopy` prop if it's provided and not an empty string.
- If textToCopy is not provided or is empty, it then attempts to copy the text content of the element referenced by contentRef. - If `textToCopy` is not provided or is empty, it then attempts to copy the text content of the element referenced by contentRef.
- Uses the Clipboard API (`navigator.clipboard.writeText`) to copy the text to the user's clipboard. - Uses the Clipboard API (`navigator.clipboard.writeText`) to copy the text to the user's clipboard.
- Displays a snackbar notification confirming the copy action if successful. - Displays a snackbar notification confirming the copy action if successful.