about summary refs log tree commit diff
path: root/src/view/com/util/post-embeds
Commit message (Collapse)AuthorAgeFilesLines
* Increase scrubber height if touch device (#7081)Samuel Newman2024-12-121-2/+6
| | | | | | | | | * further increase target area of scrubber * make scrubber bigger if touch device --------- Co-authored-by: Antonio Sarcevic <sarcevicantonio@gmail.com>
* Revert "[Video] Revert safari hackfix (#5367)" (#7001)dan2024-12-071-0/+7
| | | This reverts commit 94e7bfbe40ba6766361caaba99feff74a187613a.
* [a11y] Video - fix labels and make more detailed (#6635)Samuel Newman2024-11-226-7/+23
| | | | | * fix labels and make more detailed * move overall label to parent
* preserve video's last known time when scrolling away (#6239)Andrew Aquino2024-11-192-0/+13
|
* Leverage jsx transform to remove unnecessary react imports and update eslint ↵Paul Coroneos2024-11-191-1/+0
| | | | | | | | | config (#6516) * update eslint config with jsx runtime * leverage jsx transform to remove unnecessary react imports and update eslint config * run yarn lint --fix to remove eslint disables related to react/prop-types that is now disabled
* Attempted video perf improvements (#6519)Samuel Newman2024-11-193-38/+32
| | | | | | | * remove layout animations from video * only show button/spinner when necessary * use native activityindicator rather than loader
* Add useHandleRef as a lighter alternative for useAnimatedRef (#6500)dan2024-11-181-9/+5
|
* Hardcode Giphy embed height (#6475)dan2024-11-181-26/+4
|
* [Lightbox] Always rely on Expo Image cache (#6189)dan2024-11-091-2/+8
| | | | | | | | | | | | | | | * Inline useImageAspectRatio * Switch AutoSizedImage to read dimensions from Expo Image cache * Include thumbnail dimensions in image data * Use dims from Expo Image cache in lightbox * Fix wiring so all thumbnails get dimensions * Fix type * Oops
* [Lightbox] Open animation (#6159)dan2024-11-091-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Measure all rects for embeds * Measure avi rects too * Animate lightbox in and out * Account for safe area in the animation * Tune spring times * Remove null checks for measurements * Remove superfluous view * Block swipe while opening * Interpolate width/height on native side for Android * Make it fast by animating only affine transforms * Fix tall image final state The initial animation frame is still off on both platforms. * Try to squeeze perf * Avoid blank images during animation on iOS * Fix bad rebase * Fix a huge memory issue due to expo/expo#24894 * Fix last frame flash * Fix thum dim calculation for tall images
* [Lightbox] Add border radius to avatars (#6136)dan2024-11-081-1/+4
| | | | | | | | | | | * Preserve shape in lightbox * Rename shapes to semantic meanings It looks like after all I do want to fork based on those. * Round avatars on the web * Oops
* Refactor lightbox prop drilling (#6073)dan2024-11-041-1/+0
| | | | | | | | | | | * Refactor lightbox footer to render prop * Unify lightbox types * Unindent * Refactor LightboxFooter props * Move LightboxFooter into the implementation file
* Unify dimensions cache between lightbox and feed (#6047)dan2024-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove useless memo * Use explicit values when useImageAspectRatio doesn't know It's not very good that you can't distingiush when we haven't loaded vs when we're certain. This shifts the burden of dealing with missing values to the caller. * Check cache early * Handle src change * Rewrite image-sizes.fetch to avoid mixing async styles * Make image-sizes LRU Code is copy paste from useImageDimensions.ts * Rm unused fields * Derive aspect on the fly * Factor useImageDimensions out of useImageAspectRatio * Move useImageDimensions into image-sizes * Make lightbox use the same cache * Wire up known dimensions to the lightbox * Handle division by zero in the hook * Use safe aspect for lightbox calculations
* fix text clipping around external embed's domain (#6012)Ben Harris2024-11-011-1/+1
|
* Measure tapped image coordinates before opening lightbox (#6001)dan2024-10-311-5/+28
| | | | | * Measure image on press * Pass dimensions to the lightbox component
* Add subtle web hover to interactive rows (#5989)dan2024-10-291-39/+53
| | | | | | | * Add subtle web hover to interactive rows * Adjust numbers * Ignore touch devices
* Show almost-instant preview when opening lightbox (#6000)dan2024-10-291-0/+1
| | | | | | | | | | | * Plumb thumbUri down to the lightbox * Remove onLoad tracking from lightbox * Hook up placeholder URI to the image * Fix NaN causing crash on double tap while offline * Protect against NaNs in the future
* Refactor lightbox model to plain object (#5999)dan2024-10-291-2/+6
| | | | | * Refactor lightbox model to plain object * Rename name to type
* Fix video quality for short videos (#5996)Samuel Newman2024-10-292-13/+36
| | | | | * remove auto level capping * flush first fragment on loop
* Display non-post embeds in composer preview (#5647)dan2024-10-242-15/+18
| | | | | | | | | | | | | * Display non-post embeds in composer preview * Remove starter pack special case from ExternalLinkEmbed This should not be needed because starter pack composer preview now goes through the record preview codepath, just like in the feed/post view. * Hide record ext links if quote is present * Align remove buttons Remove the implicit top padding in record embeds and make it conditional, which is similar to how we treat external link embeds. This makes the X button appear in the same place for record embeds as with links.
* Include hydrated responses for other records (#5646)dan2024-10-241-1/+1
| | | | | | | * Include hydrated responses for other records * Rename meta -> view This is actually all it is now.
* Refactor post meta to return PostView (#5645)dan2024-10-241-38/+20
|
* Link cards (#5677)Eric Bailey2024-10-144-206/+136
| | | | | | | | | | | | | | | * New link card styles * Cleanup of consituent parts, add hover state * Fix gif alt text view * Fix alt text view more * Remove dupe * Update remove button * Remove added margin on gif
* Fetch link previews from RQ (#5608)dan2024-10-073-13/+39
| | | | | Co-authored-by: Mary <git@mary.my.id> Co-authored-by: Hailey <me@haileyok.com>
* [Video] Prevent screen from dimming while in full screen (#5637)Hailey2024-10-071-2/+2
|
* [Video] Revert safari hackfix (#5367)Samuel Newman2024-10-071-7/+0
|
* [Video] use dynamic import for hls.js (#5429)Hailey2024-09-252-10/+50
| | | | Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [Neue] Post avi, `PostMeta` cleanup (#5450)Eric Bailey2024-09-241-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support emoji in text with custom font * Add emoji support to elements that need it * Remove unused file causing lint failure * Add web only link variant * Refactor PostMeta * Reduce avi size in feeds * Fix alignment, emoji, in PostMeta * Smaller avis in notifications * Shrink post placeholder avi * Handle the handle again * Link cleanup * Cleanup unused props * Fix text wrapping in timestamp * Fix underline color * Tighten up spacing * Web only whiteSpace
* [Video] Refactor HLS logic (#5468)dan2024-09-241-104/+121
| | | | | | | | | | | | | * Extract HLS interop into useHLS * Rename variable * Move flushing outside an effect * use continue instead of return --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* [Video] Flush low quality segments once focused (#5430)Samuel Newman2024-09-231-8/+69
| | | | | | | | | | | * Update VideoEmbedInnerWeb.tsx * keep proper track and flush properly * consistent current * use current in listener * manually loop
* [Neue] Handle emoji within custom font (#5449)Eric Bailey2024-09-241-13/+14
| | | | | | | | | | | | | * Support emoji in text with custom font * Add emoji support to elements that need it * Remove unused file causing lint failure * Fix a few more emoji locations * Couple more * No throw
* Use pressable for video controls (#5452)Samuel Newman2024-09-232-14/+19
| | | | | | | * use pressable for video controls * add `as any` to preexisiting bad type * stop mutating prop
* [Neue] Font weights (#5442)Eric Bailey2024-09-202-6/+6
| | | | | | | * Align all font weights * Only load necessary fonts * Also comment out from hook
* Increase rounding for all embeds (#5421)Samuel Newman2024-09-209-37/+34
| | | | | | | | | | | | | | | | | | | * tweak image styles * fix reply image preview and covert to atoms * increase rounding on media inset border * decrease gap on desktop * fix inset styles * increase rounding on embeds to `md` * Couple edge cases --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [Neue] Buttons (#5406)Eric Bailey2024-09-201-1/+1
| | | | | | | | | | | * Re-align button sizing (cherry picked from commit bcec243bb59dfe468313d98ba61f464d9750feec) * Use large, small, tiny (cherry picked from commit 1dc333c2993ab7f2e0ac750c0670dcec9a7069d0) * Tweaks
* Fix ext embeds in DMs (#5419)Samuel Newman2024-09-191-1/+1
| | | | | * fix ext embeds in DMs * undo acciental rounding change
* [Video] Additional android fixes (#5373)Hailey2024-09-171-10/+1
| | | | | | | * rm unused code * bump lib * invert bool
* [Video] Fix safari showing spinner (#5364)Samuel Newman2024-09-162-3/+11
|
* [Video] Volume controls on web (#5363)Samuel Newman2024-09-1611-911/+1058
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * split up VideoWebControls * add basic slider * logarithmic volume * integrate mute state * fix typo * shared video volume * rm log * animate in/out * disable for touch devices * remove flicker on touch devices * more detailed comment * move into correct context provider * add minHeight * hack * bettern umber --------- Co-authored-by: Hailey <me@haileyok.com>
* [Video] Fix scrubber tap target (#5360)Samuel Newman2024-09-161-2/+4
| | | | | * put padding on correct element * clear timeout on down
* Remove overflow hidden from external link outer el (#5356)Eric Bailey2024-09-152-3/+33
| | | | | | | | | * Remove overflow hidden * Borders when no thumb * Fix overflow, add bg to no-thumb state * Cleanup
* Add context to `Unmute` and `Mute` strings (#5340)surfdude292024-09-151-1/+5
| | | | Co-authored-by: Hailey <me@haileyok.com>
* [Video] Remember mute state while scrolling (#5331)Hailey2024-09-132-8/+39
|
* [Video] Remove `expo-video`, use `bluesky-video` (#5282)Hailey2024-09-134-314/+213
| | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Image/video border + tweaks (#5324)Eric Bailey2024-09-137-56/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Image/video border (#5253) * Update AutoSizedImage.tsx * Update AutoSizedImage.tsx * Update Gallery.tsx * Update ExternalLinkEmbed.tsx * Update MediaPreview.tsx * Update UserAvatar.tsx * Update ExternalLinkEmbed.tsx * Update ExternalPlayerEmbed.tsx * Update ExternalGifEmbed.tsx * Update GifEmbed.tsx * Update ExternalGifEmbed.tsx * Update GifEmbed.tsx * Update UserAvatar.tsx * Update ExternalPlayerEmbed.tsx * Update ExternalPlayerEmbed.tsx * video * Update QuoteEmbed.tsx * Tweaks, abstract components --------- Co-authored-by: Minseo Lee <itoupluk427@gmail.com>
* Tabular numbers to video timestamp (#5293)Minseo Lee2024-09-122-3/+3
|
* [Video] Fix web autoplay (#5274)Samuel Newman2024-09-111-11/+14
|
* disable autoplay within messages and trim feelers (#5260)Samuel Newman2024-09-113-18/+23
|
* hls buffering tweaks (#5266)Samuel Newman2024-09-112-1/+11
|
* increase target area of scrubber (#5265)Samuel Newman2024-09-111-1/+1
|