Skip to content

Commit

Permalink
feat: imporve css
Browse files Browse the repository at this point in the history
  • Loading branch information
RieLCho committed Oct 11, 2024
1 parent 15d4bd7 commit 9409d27
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions reader/src/ASTRv2/content/img.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<template>
<n-image
:class="{
images: imgtype == 'images' || bgMode == 'full',
backgrounds: imgtype == 'backgrounds' && bgMode == 'stripe',
}"
:src="getAvgUrl()"
/>
<div class="image-container">
<n-image
:class="{
images: imgtype == 'images' || bgMode == 'full',
backgrounds: imgtype == 'backgrounds' && bgMode == 'stripe',
}"
:src="getAvgUrl()"
/>
</div>
</template>

<script>
Expand Down Expand Up @@ -39,6 +41,15 @@ export default {
</script>

<style>
.image-container {
text-align: center;
}
.image-container n-image {
display: block;
margin: 0 auto;
}
.line .images img {
max-width: 500px;
max-height: 300px;
Expand Down

0 comments on commit 9409d27

Please sign in to comment.