Skip to content

Commit 6a541c1

Browse files
committed
fix: use larger window for image generator
1 parent 538432d commit 6a541c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

custom/imageGenerator.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
<template>
33
<!-- Main modal -->
4-
<div tabindex="-1" class="overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 bottom-0 z-50 flex justify-center items-center w-full md:inset-0 h-[calc(100%-1rem)] max-h-full bg-white bg-opacity-50 dark:bg-gray-900 dark:bg-opacity-50">
5-
<div class="relative p-4 w-full max-w-2xl max-h-full ">
4+
<div tabindex="-1" class="overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 bottom-0 z-50 flex justify-center items-center w-full md:inset-0 h-full max-h-full bg-white bg-opacity-50 dark:bg-gray-900 dark:bg-opacity-50">
5+
<div class="relative p-4 w-10/12 max-w-full max-h-full ">
66
<!-- Modal content -->
77
<div class="relative bg-white rounded-lg shadow-xl dark:bg-gray-700">
88
<!-- Modal header -->
@@ -66,7 +66,7 @@
6666

6767
<div id="gallery" class="relative w-full" data-carousel="static">
6868
<!-- Carousel wrapper -->
69-
<div class="relative h-56 overflow-hidden rounded-lg md:h-72">
69+
<div class="relative h-56 overflow-hidden rounded-lg md:h-[calc(100vh-350px)]">
7070
<!-- Item 1 -->
7171
<div v-for="(img, index) in images" :key="index" class="hidden duration-700 ease-in-out" data-carousel-item>
7272
<img :src="img" class="absolute block max-w-full max-h-full -translate-x-1/2 -translate-y-1/2 top-1/2 left-1/2 object-cover"

0 commit comments

Comments
 (0)