Skip to content

Commit

Permalink
fix: ads display causing layout break in mobile view (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
posva authored Feb 10, 2021
1 parent e58f52e commit 7ceaf34
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/client/theme-default/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ const pageClasses = computed(() => {
#ads-container {
/* Avoid layout shift */
height: 105px;
margin: 1.75rem 0;
}
}
Expand Down
1 change: 0 additions & 1 deletion src/client/theme-default/components/CarbonAds.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ onMounted(() => {

<style scoped>
.carbon-ads {
padding: 1.75rem 0 0;
border-radius: 4px;
margin: 0 auto;
max-width: 280px;
Expand Down
7 changes: 7 additions & 0 deletions src/client/theme-default/components/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,11 @@ import NextAndPrevLinks from './NextAndPrevLinks.vue'
.content {
padding-bottom: 1.5rem;
}
@media (max-width: 420px) {
.content {
/* fix carbon ads display */
clear: both;
}
}
</style>

0 comments on commit 7ceaf34

Please sign in to comment.