Skip to content

Commit

Permalink
adjusting for BlockInlineImage within student project steps
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Sep 10, 2024
1 parent e75f8c7 commit 4050ab7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,17 @@
class="flex col-span-5"
:class="data.alignTo === 'right' ? 'col-start-3 lg:order-1' : 'col-start-6 lg:order-2'"
>
<BlockText :text="data.text" />
<BlockText
:variant="variant"
:text="data.text"
/>
</div>
</div>
</div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import { defineComponent, type PropType } from 'vue'
import type { ImageObject } from '../../interfaces'
import { mixinGetSrcSet } from './../../utils/mixins'
import MixinFancybox from './../MixinFancybox/MixinFancybox.vue'
Expand All @@ -73,6 +76,10 @@ export default defineComponent({
data: {
type: Object,
required: false
},
variant: {
type: String as PropType<'small' | 'medium' | 'large'>,
default: 'large'
}
},
computed: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
:key="`inlineImageBlock${index}`"
:class="seamlessText(index) ? 'lg:mb-8 mb-5' : marginBottom"
:data="block"
:variant="size"
/>

<LayoutHelper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { HeroMediaData } from './../../../components/HeroMedia/HeroMedia.stories
import { BlockIframeEmbedData } from './../../../components/BlockIframeEmbed/BlockIframeEmbed.stories.js'
import { BlockImageCarouselData } from './../../../components/BlockImageCarousel/BlockImageCarousel.stories'
import { BlockImageData } from './../../../components/BlockImage/BlockImage.stories'
import { BlockInlineImageData } from './../../../components/BlockInlineImage/BlockInlineImage.stories'
import { BlockHeadingData } from './../../../components/BlockHeading/BlockHeading.stories'
import { BlockImageComparisonData } from './../../../components/BlockImageComparison/BlockImageComparison.stories'
import { BaseVideoData } from './../../../components/BaseVideo/BaseVideo.stories'
Expand Down Expand Up @@ -136,7 +137,7 @@ export const BaseStory = {
{
heading: 'Lorem ipsum dolor no media',
media: [],
content: [BlockImageData, ...BlockStreamfieldMinimalData.body]
content: [BlockImageData, ...BlockStreamfieldMinimalData.body, BlockInlineImageData.block]
},
{
heading: 'Sit amet',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,11 @@ const { heading, blocks, image, steps, stepsNumbering, text } = reactive(props)
}
.PageEduStudentProjectStep__fullWidth {
@screen lg {
.BlockText {
.LayoutHelper > div > .BlockText {
@screen lg {
@apply mr-[10rem];
}
}
@screen xl {
.BlockText {
@screen xl {
@apply mr-[14rem];
}
}
Expand Down

0 comments on commit 4050ab7

Please sign in to comment.