Skip to content

Commit

Permalink
Merge pull request #177 from jamcgrath/main
Browse files Browse the repository at this point in the history
modify about page css constrain images
  • Loading branch information
martinheidegger authored Jun 24, 2023
2 parents 262c79d + 0165351 commit f1244f7
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions components/ImageContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,22 +130,15 @@ onMounted(() => {
class="img-container"
:src="item.small.file"
alt=""
:style="{
width: `${item.small.size.width}px`,
height: `${item.small.size.height}px`,
}"
:width="`${item.small.size.width}`"
:height="`${item.small.size.height}`"
/>
</a>
</div>
</div>
</template>

<style scoped>
div {
display: flex;
flex-direction: row;
}
.gallery-container {
display: flex;
flex-wrap: wrap;
Expand All @@ -159,23 +152,21 @@ div {
position: relative;
border-radius: var(--radius);
}
.img-container {
width: 10rem;
height: 10rem;
}
.gallery-container a {
line-height: 0;
}
img {
margin-top: auto;
margin-bottom: auto;
.img-container {
border-radius: var(--radius);
width: 100%;
}
img:hover {
.img-container:hover {
box-shadow: 0 0 150px 5px #aab6bd;
}
.content, .date {
.content,
.date {
display: block;
margin: 1em;
}
Expand Down

0 comments on commit f1244f7

Please sign in to comment.