Skip to content

Commit 4a40e1f

Browse files
committed
fix(theme-default): avoid ad image distortion on mobile
1 parent 6ddcb99 commit 4a40e1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/client/theme-default/components/CarbonAds.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ onMounted(() => {
5959
.carbon-ads :deep(.carbon-img) {
6060
float: left;
6161
margin-right: 0.75rem;
62-
max-width: 100px;
62+
max-width: 110px;
6363
border: 1px solid var(--c-divider);
6464
}
6565
@@ -75,6 +75,7 @@ onMounted(() => {
7575
.carbon-ads :deep(.carbon-img img) {
7676
display: block;
7777
width: 100%;
78+
height: auto;
7879
}
7980
8081
@media (min-width: 420px) {

0 commit comments

Comments
 (0)