tangled
alpha
login
or
join now
pds.ls
/
pdsls
398
fork
atom
atmosphere explorer
pds.ls
tool
typescript
atproto
398
fork
atom
overview
issues
1
pulls
pipelines
change max image size
handle.invalid
3 months ago
aeb11dbb
4726da2a
verified
This commit was signed with the committer's
known signature
.
handle.invalid
SSH Key Fingerprint:
SHA256:mBrT4x0JdzLpbVR95g1hjI1aaErfC02kmLRkPXwsYCk=
+2
-2
1 changed file
expand all
collapse all
unified
split
src
components
json.tsx
+2
-2
src/components/json.tsx
···
199
199
<Show when={!hide()}>
200
200
<Show when={blob.mimeType.startsWith("image/")}>
201
201
<img
202
202
-
class="h-auto max-h-64 max-w-[16rem] object-contain"
202
202
+
class="h-auto max-h-48 max-w-48 object-contain sm:max-h-64 sm:max-w-64"
203
203
src={`https://${pds()}/xrpc/com.atproto.sync.getBlob?did=${props.repo}&cid=${blob.ref.$link}`}
204
204
onLoad={() => setMediaLoaded(true)}
205
205
/>
···
216
216
<Show when={mediaLoaded()}>
217
217
<button
218
218
onclick={() => setHide(true)}
219
219
-
class="absolute top-1 right-1 flex items-center rounded-lg bg-neutral-900/70 p-1.5 text-white opacity-100 backdrop-blur-sm transition-opacity hover:bg-neutral-900/80 active:bg-neutral-900/90 sm:opacity-0 sm:group-hover/media:opacity-100 dark:bg-neutral-100/70 dark:text-neutral-900 dark:hover:bg-neutral-100/80 dark:active:bg-neutral-100/90"
219
219
+
class="absolute top-1 right-1 flex items-center rounded-lg bg-neutral-900/70 p-1.5 text-white opacity-0 backdrop-blur-sm transition-opacity group-hover/media:opacity-100 hover:bg-neutral-900/80 active:bg-neutral-900/90 dark:bg-neutral-100/70 dark:text-neutral-900 dark:hover:bg-neutral-100/80 dark:active:bg-neutral-100/90"
220
220
>
221
221
<span class="iconify lucide--eye-off text-base"></span>
222
222
</button>