Skip to content

Commit 2725f18

Browse files
committed
fix bsky embed styling, add rounded-lg via main css to blog post images
1 parent bddcd7b commit 2725f18

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

app/assets/main.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,3 +339,11 @@ html:has(dialog:modal) {
339339
overflow: hidden;
340340
scrollbar-gutter: stable;
341341
}
342+
343+
/* Blog post Markdown wrapper styles */
344+
.blog-post img {
345+
display: block;
346+
max-width: 100%;
347+
height: auto;
348+
border-radius: 0.5rem; /* matches rounded-lg */
349+
}

app/components/EmbeddableBlueskyPost.client.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ function onPostMessage(event: MessageEvent) {
8484
max-width: 37.5rem;
8585
width: 100%;
8686
margin: 1.5rem auto;
87-
/* INFO: Necessary to remove the white 1px line at the bottom of the embed. Also sets border-radius */
88-
clip-path: inset(0 0 1px 0 round 0.75rem);
87+
border-radius: 0.75rem;
88+
overflow: hidden;
8989
}
9090
9191
.bluesky-embed-container > .loading-spinner {

0 commit comments

Comments
 (0)