diff --git a/packages/vue/src/components/BlockCardGrid/BlockCardGrid.stories.js b/packages/vue/src/components/BlockCardGrid/BlockCardGrid.stories.js index 5f13b69e..f0b0418b 100644 --- a/packages/vue/src/components/BlockCardGrid/BlockCardGrid.stories.js +++ b/packages/vue/src/components/BlockCardGrid/BlockCardGrid.stories.js @@ -92,3 +92,6 @@ export const BaseStory = { name: 'BlockCardGrid', args: { cards: BlockCardGridData } } +export const ThreeCards = { + args: { cards: BlockCardGridData.slice(0, 3) } +} diff --git a/packages/vue/src/components/BlockCardGrid/BlockCardGrid.vue b/packages/vue/src/components/BlockCardGrid/BlockCardGrid.vue index 800e548d..792617a0 100644 --- a/packages/vue/src/components/BlockCardGrid/BlockCardGrid.vue +++ b/packages/vue/src/components/BlockCardGrid/BlockCardGrid.vue @@ -3,9 +3,7 @@ v-if="cards" class="BlockCardGrid" > -
+
, default: undefined } + }, + computed: { + fourColumns() { + return this.cards && this.cards.length > 3 + }, + computedClasses() { + let classes = 'hidden md:grid md:grid-cols-2 lg:grid-cols-3' + if (this.compact) { + classes += ' gap-5' + } else { + classes += ' gap-8' + } + if (this.fourColumns) { + classes += ' xl:grid-cols-4' + } + return classes + } } }) diff --git a/packages/vue/src/components/BlockImage/BlockImageFullBleed.vue b/packages/vue/src/components/BlockImage/BlockImageFullBleed.vue index df54ff1a..9b8b942d 100644 --- a/packages/vue/src/components/BlockImage/BlockImageFullBleed.vue +++ b/packages/vue/src/components/BlockImage/BlockImageFullBleed.vue @@ -109,34 +109,32 @@ export default defineComponent({ v-if="theData" class="BlockImageFullBleed" > -
-
- + + - - - - -
+ + +
-
-
-
- - -
-
- -
+
+
+ +
-
- +
+ +
+ +