about summary refs log tree commit diff
path: root/src/view/com/util/post-embeds/index.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-11-08 02:52:03 +0000
committerGitHub <noreply@github.com>2024-11-08 02:52:03 +0000
commit22dd4947f7d88166350c13367f2af7a51a55a36b (patch)
tree078d326878044726d7729ba7c562848a658a6afe /src/view/com/util/post-embeds/index.tsx
parent5d0610d419906be0ef2c7c7ab0d1f66c366f3aed (diff)
downloadvoidsky-22dd4947f7d88166350c13367f2af7a51a55a36b.tar.zst
[Lightbox] Add border radius to avatars (#6136)
* 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
Diffstat (limited to 'src/view/com/util/post-embeds/index.tsx')
-rw-r--r--src/view/com/util/post-embeds/index.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/view/com/util/post-embeds/index.tsx b/src/view/com/util/post-embeds/index.tsx
index d686d2bd3..ea0badab0 100644
--- a/src/view/com/util/post-embeds/index.tsx
+++ b/src/view/com/util/post-embeds/index.tsx
@@ -152,7 +152,10 @@ export function PostEmbeds({
         thumbDims: MeasuredDimensions | null,
       ) => {
         openLightbox({
-          images: items,
+          images: items.map(item => ({
+            ...item,
+            type: 'image',
+          })),
           index,
           thumbDims,
         })