Commit 8d7d145
authored
feat: show lock on embed while scrolling (#38)
* feat: add clickable hint option set to false for embeddables
* fix: increase debounce time for scroll end event in CustomEmbeddableRenderer
* feat: add lock indicator for scrolling in CustomEmbeddableRenderer
- Introduced a LockIndicator component that displays a lock icon when the user is scrolling.
- Updated styles to enhance the visibility and positioning of the lock icon.
- Implemented event listeners to manage the visibility of the lock icon based on scroll state.
* feat: enhance LockIndicator with countdown timer
- Added a countdown timer to the LockIndicator component that activates when scrolling stops.
- Updated styles for the lock icon and countdown timer to improve visibility and positioning.
- Implemented polling and event listeners to manage the countdown state effectively.
* refactor: simplify LockIndicator by removing countdown timer
- Removed the countdown timer functionality from the LockIndicator component, streamlining its behavior to only show the lock icon when scrolling.
- Updated styles to reflect the removal of the countdown timer and adjusted the lock icon's size for better integration.
- Cleaned up the useEffect hook to eliminate unnecessary state management related to the countdown.1 parent 0191304 commit 8d7d145
File tree
3 files changed
+57
-4
lines changed- src/frontend/src
- lib
3 files changed
+57
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
18 | 34 | | |
19 | 35 | | |
20 | 36 | | |
| |||
31 | 47 | | |
32 | 48 | | |
33 | 49 | | |
34 | | - | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| 83 | + | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
| |||
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
90 | 118 | | |
91 | 119 | | |
| 120 | + | |
| 121 | + | |
92 | 122 | | |
93 | 123 | | |
94 | 124 | | |
95 | 125 | | |
96 | 126 | | |
97 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
98 | 131 | | |
99 | 132 | | |
100 | 133 | | |
| |||
106 | 139 | | |
107 | 140 | | |
108 | 141 | | |
109 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| |||
0 commit comments