Skip to content

Commit

Permalink
fix(theme-default): avoid ad image distortion on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 15, 2021
1 parent 6ddcb99 commit 4a40e1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/theme-default/components/CarbonAds.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ onMounted(() => {
.carbon-ads :deep(.carbon-img) {
float: left;
margin-right: 0.75rem;
max-width: 100px;
max-width: 110px;
border: 1px solid var(--c-divider);
}
Expand All @@ -75,6 +75,7 @@ onMounted(() => {
.carbon-ads :deep(.carbon-img img) {
display: block;
width: 100%;
height: auto;
}
@media (min-width: 420px) {
Expand Down

0 comments on commit 4a40e1f

Please sign in to comment.