Skip to content

Commit

Permalink
Merge pull request #47 from os2ulf/feature/OS2UOL-113
Browse files Browse the repository at this point in the history
OS2UOL-113: Update ImageBlock and PageHeaderCard components with corr…
  • Loading branch information
SorenBonde authored Jun 12, 2024
2 parents 415c55b + bfddb68 commit 63d0d9d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions components/blocks/ImageBlock.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<script setup>
const config = useRuntimeConfig();
const props = defineProps({
blockData: Object,
});
</script>

<template>
<div class="image-block">
<NuxtLink
Expand All @@ -12,20 +20,12 @@
/>
</NuxtLink>
<BaseImage
v-if="blockData?.field_image"
v-else-if="blockData?.field_image"
:image="blockData?.field_image"
/>
</div>
</template>

<script setup>
const config = useRuntimeConfig();
const props = defineProps({
blockData: Object,
});
</script>

<style lang="postcss" scoped>
.image-block {
padding-bottom: 32px;
Expand Down
2 changes: 1 addition & 1 deletion components/page-header/PageHeaderCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const cardItem = ref(props.cardItem);
<div class="page-header-card__description">
{{ cardItem?.field_description }}
</div>
<div class="page-header-card__link" v-if="cardItem?.field_link.url">
<div class="page-header-card__link" v-if="cardItem?.field_link !== null">
<NuxtLink :to="cardItem?.field_link.url" aria-label="Læs mere">
<NuxtIcon
class="page-header-card__link--icon"
Expand Down

0 comments on commit 63d0d9d

Please sign in to comment.