Commit d091583
authored
ENG-913 - Canvas css issue in main window (#467)
* Refactor Tldraw component to remove unused TLDRAW_DATA_ATTRIBUTE and simplify canvas rendering logic. Update styles to use :has() for conditionally hiding Roam Blocks based on canvas presence.
* Enhance Tldraw component by adding early return to prevent duplicate canvas container appending. This improves rendering logic and maintains clean DOM structure.1 parent 2460c97 commit d091583
2 files changed
Lines changed: 9 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
| |||
975 | 974 | | |
976 | 975 | | |
977 | 976 | | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
| 977 | + | |
985 | 978 | | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
986 | 983 | | |
987 | 984 | | |
988 | 985 | | |
| |||
998 | 995 | | |
999 | 996 | | |
1000 | 997 | | |
1001 | | - | |
1002 | | - | |
1003 | 998 | | |
1004 | 999 | | |
1005 | 1000 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | | - | |
10 | | - | |
| 8 | + | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
0 commit comments