this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

View transition only after first open

Due to intermittent unknown crashes in browsers,
limit view transition to only trigger after the 1st media click open

If the page crash, there's no way to know how or why it happens unless
I spend time to dig in really deep into the problem

+39 -36
+5 -3
src/components/media.jsx
··· 289 289 onClick(e); 290 290 } else { 291 291 e.preventDefault(); 292 - el.style.viewTransitionName = mediaVTN; 293 - setTimeout(() => { 292 + if (el.dataset.viewTransitioned) { 293 + el.style.viewTransitionName = mediaVTN; 294 294 try { 295 295 document.startViewTransition(() => { 296 296 el.style.viewTransitionName = ''; ··· 301 301 el.style.viewTransitionName = ''; 302 302 location.hash = `#${to}`; 303 303 } 304 - }, 1); 304 + } else { 305 + location.hash = `#${to}`; 306 + } 305 307 } 306 308 } else { 307 309 onClick?.(e);
+33 -33
src/locales/en.po
··· 122 122 #: src/pages/list.jsx:171 123 123 #: src/pages/public.jsx:116 124 124 #: src/pages/scheduled-posts.jsx:89 125 - #: src/pages/status.jsx:1305 125 + #: src/pages/status.jsx:1306 126 126 #: src/pages/trending.jsx:474 127 127 msgid "More" 128 128 msgstr "" ··· 207 207 #: src/pages/catchup.jsx:71 208 208 #: src/pages/catchup.jsx:1448 209 209 #: src/pages/catchup.jsx:2061 210 - #: src/pages/status.jsx:1024 211 - #: src/pages/status.jsx:1651 210 + #: src/pages/status.jsx:1025 211 + #: src/pages/status.jsx:1652 212 212 msgid "Replies" 213 213 msgstr "" 214 214 ··· 476 476 #: src/pages/notifications.jsx:942 477 477 #: src/pages/scheduled-posts.jsx:259 478 478 #: src/pages/settings.jsx:90 479 - #: src/pages/status.jsx:1392 479 + #: src/pages/status.jsx:1393 480 480 msgid "Close" 481 481 msgstr "" 482 482 ··· 1087 1087 #: src/pages/list.jsx:321 1088 1088 #: src/pages/notifications.jsx:922 1089 1089 #: src/pages/search.jsx:561 1090 - #: src/pages/status.jsx:1425 1090 + #: src/pages/status.jsx:1426 1091 1091 msgid "Show more…" 1092 1092 msgstr "" 1093 1093 ··· 1357 1357 msgid "Filtered" 1358 1358 msgstr "" 1359 1359 1360 - #: src/components/media.jsx:477 1360 + #: src/components/media.jsx:479 1361 1361 msgid "Open file" 1362 1362 msgstr "Open file" 1363 1363 ··· 1492 1492 #: src/components/nav-menu.jsx:326 1493 1493 #: src/pages/login.jsx:32 1494 1494 #: src/pages/login.jsx:199 1495 - #: src/pages/status.jsx:924 1495 + #: src/pages/status.jsx:925 1496 1496 #: src/pages/welcome.jsx:65 1497 1497 msgid "Log in" 1498 1498 msgstr "" ··· 1714 1714 #: src/components/poll.jsx:208 1715 1715 #: src/components/poll.jsx:210 1716 1716 #: src/pages/scheduled-posts.jsx:100 1717 - #: src/pages/status.jsx:1294 1718 - #: src/pages/status.jsx:1317 1717 + #: src/pages/status.jsx:1295 1718 + #: src/pages/status.jsx:1318 1719 1719 msgid "Refresh" 1720 1720 msgstr "" 1721 1721 ··· 2561 2561 #: src/components/timeline.jsx:586 2562 2562 #: src/pages/home.jsx:228 2563 2563 #: src/pages/notifications.jsx:898 2564 - #: src/pages/status.jsx:1077 2565 - #: src/pages/status.jsx:1454 2564 + #: src/pages/status.jsx:1078 2565 + #: src/pages/status.jsx:1455 2566 2566 msgid "Try again" 2567 2567 msgstr "" 2568 2568 ··· 3891 3891 msgstr "" 3892 3892 3893 3893 #. js-lingui-explicit-id 3894 - #: src/pages/status.jsx:657 3895 - #: src/pages/status.jsx:1220 3894 + #: src/pages/status.jsx:658 3895 + #: src/pages/status.jsx:1221 3896 3896 msgid "post.title" 3897 3897 msgstr "Post" 3898 3898 3899 - #: src/pages/status.jsx:911 3899 + #: src/pages/status.jsx:912 3900 3900 msgid "You're not logged in. Interactions (reply, boost, etc) are not possible." 3901 3901 msgstr "" 3902 3902 3903 - #: src/pages/status.jsx:931 3903 + #: src/pages/status.jsx:932 3904 3904 msgid "This post is from another instance (<0>{instance}</0>). Interactions (reply, boost, etc) are not possible." 3905 3905 msgstr "" 3906 3906 3907 - #: src/pages/status.jsx:959 3907 + #: src/pages/status.jsx:960 3908 3908 msgid "Error: {e}" 3909 3909 msgstr "" 3910 3910 3911 - #: src/pages/status.jsx:966 3911 + #: src/pages/status.jsx:967 3912 3912 msgid "Switch to my instance to enable interactions" 3913 3913 msgstr "" 3914 3914 3915 - #: src/pages/status.jsx:1068 3915 + #: src/pages/status.jsx:1069 3916 3916 msgid "Unable to load replies." 3917 3917 msgstr "" 3918 3918 3919 - #: src/pages/status.jsx:1180 3919 + #: src/pages/status.jsx:1181 3920 3920 msgid "Back" 3921 3921 msgstr "" 3922 3922 3923 - #: src/pages/status.jsx:1211 3923 + #: src/pages/status.jsx:1212 3924 3924 msgid "Go to main post" 3925 3925 msgstr "" 3926 3926 3927 3927 #. placeholder {0}: ancestors.length 3928 - #: src/pages/status.jsx:1234 3928 + #: src/pages/status.jsx:1235 3929 3929 msgid "{0} posts above ‒ Go to top" 3930 3930 msgstr "" 3931 3931 3932 - #: src/pages/status.jsx:1281 3933 - #: src/pages/status.jsx:1344 3932 + #: src/pages/status.jsx:1282 3933 + #: src/pages/status.jsx:1345 3934 3934 msgid "Switch to Side Peek view" 3935 3935 msgstr "" 3936 3936 3937 - #: src/pages/status.jsx:1345 3937 + #: src/pages/status.jsx:1346 3938 3938 msgid "Switch to Full view" 3939 3939 msgstr "" 3940 3940 3941 - #: src/pages/status.jsx:1363 3941 + #: src/pages/status.jsx:1364 3942 3942 msgid "Show all sensitive content" 3943 3943 msgstr "" 3944 3944 3945 - #: src/pages/status.jsx:1368 3945 + #: src/pages/status.jsx:1369 3946 3946 msgid "Experimental" 3947 3947 msgstr "" 3948 3948 3949 - #: src/pages/status.jsx:1377 3949 + #: src/pages/status.jsx:1378 3950 3950 msgid "Unable to switch" 3951 3951 msgstr "" 3952 3952 3953 3953 #. placeholder {0}: punycode.toUnicode( postInstance, ) 3954 - #: src/pages/status.jsx:1384 3954 + #: src/pages/status.jsx:1385 3955 3955 msgid "Switch to post's instance ({0})" 3956 3956 msgstr "Switch to post's instance ({0})" 3957 3957 3958 - #: src/pages/status.jsx:1387 3958 + #: src/pages/status.jsx:1388 3959 3959 msgid "Switch to post's instance" 3960 3960 msgstr "" 3961 3961 3962 - #: src/pages/status.jsx:1445 3962 + #: src/pages/status.jsx:1446 3963 3963 msgid "Unable to load post" 3964 3964 msgstr "" 3965 3965 3966 3966 #. placeholder {0}: replies.length 3967 3967 #. placeholder {1}: shortenNumber(replies.length) 3968 - #: src/pages/status.jsx:1581 3968 + #: src/pages/status.jsx:1582 3969 3969 msgid "{0, plural, one {# reply} other {<0>{1}</0> replies}}" 3970 3970 msgstr "" 3971 3971 3972 3972 #. placeholder {0}: shortenNumber(totalComments) 3973 - #: src/pages/status.jsx:1599 3973 + #: src/pages/status.jsx:1600 3974 3974 msgid "{totalComments, plural, one {# comment} other {<0>{0}</0> comments}}" 3975 3975 msgstr "" 3976 3976 3977 - #: src/pages/status.jsx:1621 3977 + #: src/pages/status.jsx:1622 3978 3978 msgid "View post with its replies" 3979 3979 msgstr "" 3980 3980
+1
src/pages/status.jsx
··· 193 193 }); 194 194 transition.ready.finally(() => { 195 195 el.style.viewTransitionName = ''; 196 + el.dataset.viewTransitioned = mediaVTN; 196 197 }); 197 198 } else { 198 199 mediaClose();