Skip to content

Commit

Permalink
fix(theme): add height constraints to hero image (#1983)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusKeck authored Feb 25, 2023
1 parent e9d1de8 commit 803d5b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/theme-default/components/VPHero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -306,19 +306,22 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
/*rtl:ignore*/
left: 50%;
max-width: 192px;
max-height: 192px;
/*rtl:ignore*/
transform: translate(-50%, -50%);
}
@media (min-width: 640px) {
:deep(.image-src) {
max-width: 256px;
max-height: 256px;
}
}
@media (min-width: 960px) {
:deep(.image-src) {
max-width: 320px;
max-height: 320px;
}
}
</style>

0 comments on commit 803d5b6

Please sign in to comment.