|  | 
| 1 | 1 | <template> | 
| 2 |  | -  <div class="flex items-end justify-start gap-2" @click="openDialog"> | 
|  | 2 | +  <div class="flex items-end justify-start gap-2 cursor-pointer" @click="openDialog"> | 
| 3 | 3 |     <div class="flex items-center justify-center text-white bg-gradient-to-r h-[18px] from-purple-500 via-purple-600 to-purple-700 hover:bg-gradient-to-br focus:ring-4 focus:outline-none focus:ring-purple-300 dark:focus:ring-purple-800 font-medium rounded-md text-sm px-1 text-center"> | 
| 4 | 4 |       AI | 
| 5 | 5 |     </div> | 
| 6 |  | -    <p class="text-justify max-h-[18px]">{{ props.meta.actionName }}</p> | 
|  | 6 | +    <p class="text-justify max-h-[18px] truncate max-w-[60vw] md:max-w-none">{{ props.meta.actionName }}</p> | 
| 7 | 7 |   </div> | 
| 8 | 8 |   <Dialog ref="confirmDialog"> | 
| 9 | 9 |     <div | 
| 10 | 10 |       class="fixed inset-0 z-20 flex items-center justify-center bg-black/40" | 
| 11 | 11 |     > | 
| 12 | 12 |       <div | 
| 13 |  | -        class="bulk-vision-dialog flex items-center justify-center relative max-w-[95vw] min-w-[640px] max-h-[90vh] bg-white dark:bg-gray-900 rounded-md shadow-2xl overflow-hidden" | 
|  | 13 | +        class="bulk-vision-dialog flex items-center justify-center relative w-[100vw] h-[100vh] max-h-[100vh] md:w-auto md:max-w-[95vw] md:min-w-[640px] md:h-auto md:max-h-[90vh] bg-white dark:bg-gray-900 rounded-none md:rounded-md shadow-2xl overflow-hidden" | 
| 14 | 14 |         @click.stop | 
| 15 | 15 |       > | 
| 16 |  | -        <div class="bulk-vision-table flex flex-col items-center justify-evenly gap-4 w-full h-full p-6 overflow-y-auto"> | 
|  | 16 | +        <div class="bulk-vision-table flex flex-col items-center justify-evenly gap-3 md:gap-4 w-full h-full p-4 md:p-6 overflow-y-auto overflow-x-auto"> | 
| 17 | 17 |           <button type="button"  | 
| 18 | 18 |             @click="closeDialog" | 
| 19 | 19 |             class="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white" > | 
|  | 
| 22 | 22 |               </svg> | 
| 23 | 23 |           </button> | 
| 24 | 24 | 
 | 
| 25 |  | -          <VisionTable | 
| 26 |  | -            v-if="records && props.checkboxes.length" | 
| 27 |  | -            :checkbox="props.checkboxes" | 
| 28 |  | -            :records="records" | 
| 29 |  | -            :index="0" | 
| 30 |  | -            :meta="props.meta" | 
| 31 |  | -            :images="images" | 
| 32 |  | -            :tableHeaders="tableHeaders" | 
| 33 |  | -            :tableColumns="tableColumns" | 
| 34 |  | -            :customFieldNames="customFieldNames" | 
| 35 |  | -            :tableColumnsIndexes="tableColumnsIndexes" | 
| 36 |  | -            :selected="selected" | 
| 37 |  | -            :isAiResponseReceivedAnalize="isAiResponseReceivedAnalize" | 
| 38 |  | -            :isAiResponseReceivedImage="isAiResponseReceivedImage" | 
| 39 |  | -            :primaryKey="primaryKey" | 
| 40 |  | -            :openGenerationCarousel="openGenerationCarousel" | 
| 41 |  | -            @error="handleTableError" | 
| 42 |  | -          /> | 
| 43 |  | -          <div class="flex w-full items-end justify-end gap-4"> | 
| 44 |  | -            <div class="h-full text-red-600 font-semibold flex items-center justify-center mb-2"> | 
|  | 25 | +          <div v-if="records && props.checkboxes.length" class="w-full overflow-x-auto"> | 
|  | 26 | +            <VisionTable | 
|  | 27 | +              :checkbox="props.checkboxes" | 
|  | 28 | +              :records="records" | 
|  | 29 | +              :index="0" | 
|  | 30 | +              :meta="props.meta" | 
|  | 31 | +              :images="images" | 
|  | 32 | +              :tableHeaders="tableHeaders" | 
|  | 33 | +              :tableColumns="tableColumns" | 
|  | 34 | +              :customFieldNames="customFieldNames" | 
|  | 35 | +              :tableColumnsIndexes="tableColumnsIndexes" | 
|  | 36 | +              :selected="selected" | 
|  | 37 | +              :isAiResponseReceivedAnalize="isAiResponseReceivedAnalize" | 
|  | 38 | +              :isAiResponseReceivedImage="isAiResponseReceivedImage" | 
|  | 39 | +              :primaryKey="primaryKey" | 
|  | 40 | +              :openGenerationCarousel="openGenerationCarousel" | 
|  | 41 | +              @error="handleTableError" | 
|  | 42 | +            /> | 
|  | 43 | +          </div> | 
|  | 44 | +          <div class="flex w-full flex-col md:flex-row items-stretch md:items-end justify-end gap-3 md:gap-4"> | 
|  | 45 | +            <div class="h-full text-red-600 font-semibold flex items-center justify-center md:mb-2"> | 
| 45 | 46 |               <p v-if="isError === true">{{ errorMessage }}</p> | 
| 46 | 47 |             </div> | 
| 47 |  | -            <button type="button" class="py-2.5 px-5 ms-3 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700" | 
|  | 48 | +            <button type="button" class="w-full md:w-auto py-2.5 px-5 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700" | 
| 48 | 49 |               @click="closeDialog" | 
| 49 | 50 |             > | 
| 50 | 51 |               {{'Cancel'}} | 
| 51 | 52 |             </button> | 
| 52 | 53 |             <Button  | 
| 53 |  | -              class="w-64" | 
|  | 54 | +              class="w-full md:w-64" | 
| 54 | 55 |               @click="saveData" | 
| 55 | 56 |               :disabled="isLoading || checkedCount < 1 || isCriticalError" | 
| 56 | 57 |               :loader="isLoading" | 
|  | 
0 commit comments