Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
terrerox committed Dec 24, 2022
1 parent 9d0f48f commit 05156e2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/Post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ defineProps({
</h2>
<small>{{post.date}}</small>
</header>
<section v-show="post.image_url">
<img :src="post.image_url" class="post-image"/>
<section class="image-section" v-show="post.image_url">
<img :src="post.image_url"/>
</section>
<section>
<p>
Expand Down
7 changes: 6 additions & 1 deletion src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,15 @@ a:focus {
margin-top: var(--spacing-8);
}

.post-image {
.image-section {
display: flex;
}

.image-section > img {
width: 630px;
height: 474px;
}

.post-list-item p {
margin-bottom: var(--spacing-0);
}
Expand Down
4 changes: 2 additions & 2 deletions src/views/BlogPost.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ watchEffect(
<h1 itemProp="headline">{{postStore.post.title}}</h1>
<p>{{postStore.post.date}}</p>
</header>
<section v-show="postStore.post.image_url">
<img :src="postStore.post.image_url" class="post-image"/>
<section class="image-section" v-show="postStore.post.image_url">
<img :src="postStore.post.image_url"/>
</section>
<section
itemProp="articleBody"
Expand Down

1 comment on commit 05156e2

@vercel
Copy link

@vercel vercel bot commented on 05156e2 Dec 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.