Skip to content

Commit 7ceaf34

Browse files
authored
fix: ads display causing layout break in mobile view (#230)
1 parent e58f52e commit 7ceaf34

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

src/client/theme-default/Layout.vue

+1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ const pageClasses = computed(() => {
179179
#ads-container {
180180
/* Avoid layout shift */
181181
height: 105px;
182+
margin: 1.75rem 0;
182183
}
183184
}
184185

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

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ onMounted(() => {
2222

2323
<style scoped>
2424
.carbon-ads {
25-
padding: 1.75rem 0 0;
2625
border-radius: 4px;
2726
margin: 0 auto;
2827
max-width: 280px;

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

+7
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,11 @@ import NextAndPrevLinks from './NextAndPrevLinks.vue'
4747
.content {
4848
padding-bottom: 1.5rem;
4949
}
50+
51+
@media (max-width: 420px) {
52+
.content {
53+
/* fix carbon ads display */
54+
clear: both;
55+
}
56+
}
5057
</style>

0 commit comments

Comments
 (0)