CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 18:42:19 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/RSSNext/Folo.git
etag: W/"4ffce9d2fdfbd50a8002a88f518f3a6b"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=7UE2e501hoj8Xh6O52scBpP%2FvyN02pyeiAbybckqzdg9WuWFuWwcWdnh%2BhNXaRNsm4UxiRrLRzWO6qzYethJQexZDLzlkbzmWThrAr%2BAePMHvOltn0%2F4leGkioj7nvRGoTxbhNDJiFwEOi0tSe2R8aWvOzOQfokBpnEWqoGFkgudt1JY6QIVNcbOWF61N%2FmyBsb%2FfPb7tLe%2BGI6uKO13ZC5hOJr5BwneJxhdttC9BAcCPAAtR%2F62Sufzg9RazZksdPuCsqIpVLmMnjoBrVR6lA%3D%3D--GTUO4lmmdY7EDnK9--CUb4W7t6MtfZ2iL3tEIYmQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1432808538.1753296138; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 18:42:18 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 18:42:18 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C562:18BEF9:23294:2B99B:68812D0A
feat: enhance media preview with drag-to-close functionality and anim… · RSSNext/Folo@2ea0725 · GitHub
Copy file name to clipboardExpand all lines: apps/desktop/layer/renderer/src/components/ui/media/PreviewMediaContent.tsx
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit 2ea0725
committed
feat: enhance media preview with drag-to-close functionality and animation
- Implement drag-to-close feature for the media preview modal, allowing users to dismiss the modal by dragging.
- Introduce dynamic scaling and opacity adjustments during drag interactions.
- Update modal animations using Framer Motion for smoother transitions.
- Refactor child component handling to support zoom state changes and improve overall structure.
Signed-off-by: Innei <tukon479@gmail.com>1 parent 15b8d79 commit 2ea0725Copy full SHA for 2ea0725
File tree
Expand file treeCollapse file tree
1 file changed
+194
-44
lines changedFilter options
- apps/desktop/layer/renderer/src/components/ui/media
Expand file treeCollapse file tree
1 file changed
+194
-44
lines changedapps/desktop/layer/renderer/src/components/ui/media/PreviewMediaContent.tsx
Copy file name to clipboardExpand all lines: apps/desktop/layer/renderer/src/components/ui/media/PreviewMediaContent.tsx+194-44Lines changed: 194 additions & 44 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
14 | 15 |
| |
| 16 | + | |
15 | 17 |
| |
16 | 18 |
| |
17 | 19 |
| |
| |||
24 | 26 |
| |
25 | 27 |
| |
26 | 28 |
| |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
27 | 56 |
| |
28 | 57 |
| |
29 |
| - | |
30 |
| - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
31 | 64 |
| |
32 |
| - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
33 | 68 |
| |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
34 | 89 |
| |
35 |
| - | |
36 |
| - | |
| 90 | + | |
| 91 | + | |
| 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 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
37 | 152 |
| |
38 | 153 |
| |
39 | 154 |
| |
40 | 155 |
| |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
45 | 161 |
| |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
46 | 171 |
| |
47 | 172 |
| |
48 | 173 |
| |
49 | 174 |
| |
50 |
| - | |
| 175 | + | |
51 | 176 |
| |
52 | 177 |
| |
53 | 178 |
| |
54 |
| - | |
| 179 | + | |
55 | 180 |
| |
56 | 181 |
| |
57 | 182 |
| |
58 | 183 |
| |
59 | 184 |
| |
60 | 185 |
| |
61 |
| - | |
| 186 | + | |
62 | 187 |
| |
63 | 188 |
| |
64 | 189 |
| |
| |||
93 | 218 |
| |
94 | 219 |
| |
95 | 220 |
| |
96 |
| - | |
| 221 | + | |
97 | 222 |
| |
98 | 223 |
| |
99 | 224 |
| |
| |||
103 | 228 |
| |
104 | 229 |
| |
105 | 230 |
| |
106 |
| - | |
| 231 | + | |
107 | 232 |
| |
108 | 233 |
| |
109 | 234 |
| |
110 | 235 |
| |
111 | 236 |
| |
112 | 237 |
| |
113 | 238 |
| |
114 |
| - | |
| 239 | + | |
115 | 240 |
| |
116 | 241 |
| |
117 | 242 |
| |
118 | 243 |
| |
119 | 244 |
| |
120 | 245 |
| |
121 |
| - | |
122 |
| - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
123 | 255 |
| |
124 | 256 |
| |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
125 | 269 |
| |
126 |
| - | |
127 |
| - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
128 | 279 |
| |
129 |
| - | |
130 |
| - | |
131 |
| - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
132 | 285 |
| |
133 | 286 |
| |
134 | 287 |
| |
| |||
139 | 292 |
| |
140 | 293 |
| |
141 | 294 |
| |
142 |
| - | |
| 295 | + | |
| 296 | + | |
143 | 297 |
| |
144 | 298 |
| |
145 | 299 |
| |
| |||
179 | 333 |
| |
180 | 334 |
| |
181 | 335 |
| |
182 |
| - | |
183 |
| - | |
| 336 | + | |
| 337 | + | |
184 | 338 |
| |
185 | 339 |
| |
186 | 340 |
| |
| |||
200 | 354 |
| |
201 | 355 |
| |
202 | 356 |
| |
| 357 | + | |
203 | 358 |
| |
204 | 359 |
| |
205 | 360 |
| |
| |||
209 | 364 |
| |
210 | 365 |
| |
211 | 366 |
| |
212 |
| - | |
213 |
| - | |
| 367 | + | |
| 368 | + | |
214 | 369 |
| |
215 | 370 |
| |
216 | 371 |
| |
| |||
234 | 389 |
| |
235 | 390 |
| |
236 | 391 |
| |
| 392 | + | |
237 | 393 |
| |
238 | 394 |
| |
239 | 395 |
| |
240 | 396 |
| |
241 | 397 |
| |
242 | 398 |
| |
243 | 399 |
| |
244 |
| - | |
245 |
| - | |
246 |
| - | |
247 |
| - | |
248 |
| - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
249 | 403 |
| |
250 | 404 |
| |
251 | 405 |
| |
252 | 406 |
| |
253 |
| - | |
| 407 | + | |
254 | 408 |
| |
255 | 409 |
| |
256 | 410 |
| |
257 |
| - | |
258 |
| - | |
259 |
| - | |
260 |
| - | |
261 |
| - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
262 | 414 |
| |
263 | 415 |
| |
264 | 416 |
| |
265 | 417 |
| |
266 |
| - | |
| 418 | + | |
267 | 419 |
| |
268 |
| - | |
269 |
| - | |
270 |
| - | |
271 |
| - | |
272 | 420 |
| |
273 | 421 |
| |
274 | 422 |
| |
| |||
282 | 430 |
| |
283 | 431 |
| |
284 | 432 |
| |
| 433 | + | |
285 | 434 |
| |
286 |
| - | |
| 435 | + | |
287 | 436 |
| |
288 | 437 |
| |
289 | 438 |
| |
| |||
334 | 483 |
| |
335 | 484 |
| |
336 | 485 |
| |
| 486 | + | |
337 | 487 |
| |
338 | 488 |
| |
339 | 489 |
| |
|
You can’t perform that action at this time.
0 commit comments