Skip to content

Commit d44ab79

Browse files
committed
refactor(maz-ui): MazCard - ensure card has no zoom feature on gallery when it's linked
1 parent a392ef9 commit d44ab79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/lib/src/components/MazCard.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ defineEmits<{
3232
'update:collapseOpen': [boolean]
3333
}>()
3434
35+
const isLinked = computed(() => !!href || !!to)
36+
3537
const DEFAULT_GALLERY_OPTIONS: MazGalleryProps = {
3638
displayedCount: 3,
3739
remaining: false,
38-
zoom: !href && !to,
40+
zoom: !isLinked.value,
3941
width: 200,
4042
height: 150,
4143
}
@@ -131,8 +133,6 @@ const footerAlignClass = computed(() =>
131133
footerAlign === 'right' ? 'maz-text-end' : 'maz-text-start',
132134
)
133135
134-
const isLinked = computed(() => href || to)
135-
136136
function toggleCollapse() {
137137
if (collapsible)
138138
collapseOpenModel.value = !collapseOpenModel.value

0 commit comments

Comments
 (0)