fix(theme-default): avoid ad image distortion on mobile

pull/245/head
Evan You 4 years ago
parent 6ddcb99bff
commit 4a40e1faf4

@ -59,7 +59,7 @@ onMounted(() => {
.carbon-ads :deep(.carbon-img) { .carbon-ads :deep(.carbon-img) {
float: left; float: left;
margin-right: 0.75rem; margin-right: 0.75rem;
max-width: 100px; max-width: 110px;
border: 1px solid var(--c-divider); border: 1px solid var(--c-divider);
} }
@ -75,6 +75,7 @@ onMounted(() => {
.carbon-ads :deep(.carbon-img img) { .carbon-ads :deep(.carbon-img img) {
display: block; display: block;
width: 100%; width: 100%;
height: auto;
} }
@media (min-width: 420px) { @media (min-width: 420px) {

Loading…
Cancel
Save