Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix(default-theme): breadcrumbs position (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal-Dziedzinski authored Mar 29, 2020
1 parent de217da commit 235da4a
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions packages/default-theme/components/cms/elements/SwTextSlot.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="sw-text">
<div v-show="rawHtml" class="sw-text">
<div class="sw-text-content" v-html="rawHtml"></div>
</div>
</template>
Expand All @@ -16,17 +16,12 @@ export default {
computed: {
rawHtml() {
return (
this.content &&
this.content.data &&
this.content.data.content
this.content?.data?.content
);
},
verticalAlign() {
return (
this.content &&
this.content.config &&
this.content.config.verticalAlign &&
this.content.config.verticalAlign.value
this.content?.config?.verticalAlign?.value
);
}
}
Expand All @@ -36,6 +31,6 @@ export default {
<style lang="scss" scoped>
@import "~@storefront-ui/vue/styles.scss";
.sw-text {
padding: var(--spacer-big) var(--spacer-extra-big) var(--spacer-extra-big);
padding: 0 var(--spacer-extra-big);
}
</style>

0 comments on commit 235da4a

Please sign in to comment.