Skip to content

Commit

Permalink
Image issue (#672)
Browse files Browse the repository at this point in the history
* changed the content of docs

* changed font size

* added socaillist component

* fixed image issue in customer stories and docs page

* fixed Image issue in docs
  • Loading branch information
mageexcel authored Dec 4, 2023
1 parent 0b57124 commit 4310ba6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions assets/styles/_variable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ $black-3 : #252526;

$blue: #1761FD;
$indigo: #8405FF;
$indigo-1 : #1B0229;
$purple: #9F9DFF;
$pink: #FD3C97;
$red: #E36065;
Expand Down
10 changes: 8 additions & 2 deletions components/docs/Container.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="container bd-gutter bd-layout margin">
<NavSideBar :type="type" v-if="pageList" :page-list="pageList"/>

<article class="bd-main order-1" v-if="page" :class="{'full': page.rightBar === false}">
<article class="bd-main order-1" v-if="page" :class="{'full': page.rightBar === false , 'docs' : isDoc}">
<ContentRenderer :value="page">
<div class="bd-title">
<Breadcrumb :slug="props.slug" :pageList="pageList"/>
Expand Down Expand Up @@ -42,6 +42,7 @@
required: true
},
})
const isDoc = computed(()=> props.type === 'docs')
const {data: page, error} = await useAsyncData(`Container-${hash(props.slug)}`, () => {
try {
return queryContent(props.slug).findOne();
Expand Down Expand Up @@ -110,7 +111,12 @@
font-weight: 600;
line-height: 2.375;
}
</style>
.docs :deep(img){
width: 100%;
}
</style>



2 changes: 1 addition & 1 deletion components/stories/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const pagelist = ['/stories', props.slug]
@import "../../assets/styles/variable";
.main {
background-color: $purple-35;
background-color: $indigo-1;
background-image: url('/stories/header/dots.svg');
background-repeat: no-repeat;
background-position: center;
Expand Down

0 comments on commit 4310ba6

Please sign in to comment.