This commit is contained in:
f4ilji
2024-12-16 12:16:17 +05:00
parent e996b189b4
commit 0e1de6e41f
2 changed files with 3 additions and 3 deletions
@@ -1,7 +1,7 @@
<template> <template>
<div class="w-full rounded-xl mb-4 p-4 md:p-6 bg-white border border-gray-200 "> <div class="w-full rounded-xl mb-4 p-4 md:p-6 bg-white border border-gray-200 ">
<div class="flex items-center gap-x-4 text-nowrap"> <div class="flex items-center gap-y-4 gap-x-4 flex-wrap md:flex-nowrap">
<img @click="toggler = !toggler" loading="lazy" class="rounded-xl w-[150px]" :src="'/storage/' + block.data.photo" alt="Image Description"> <img v-if="block.data.photo" @click="toggler = !toggler" loading="lazy" class="rounded-xl w-[150px]" :src="'/storage/' + block.data.photo" alt="Image Description">
<div class="grow overflow-x-auto"> <div class="grow overflow-x-auto">
<p class="font-medium text-gray-800 hover:text-gray-500"> <p class="font-medium text-gray-800 hover:text-gray-500">
{{ block.data.name }} {{ block.data.name }}
@@ -1,6 +1,6 @@
<template> <template>
<div class="flex flex-col rounded-xl p-4 md:p-6 bg-white border border-gray-200 dark:bg-slate-900 dark:border-gray-700"> <div class="flex flex-col rounded-xl p-4 md:p-6 bg-white border border-gray-200">
<div class="flex items-center gap-y-4 gap-x-4 flex-wrap md:flex-nowrap"> <div class="flex items-center gap-y-4 gap-x-4 flex-wrap md:flex-nowrap">
<img v-if="worker.photo" @click="toggler = !toggler" loading="lazy" class="rounded-xl md:w-[150px]" :src="'/storage/' + worker.photo" alt="Image Description"> <img v-if="worker.photo" @click="toggler = !toggler" loading="lazy" class="rounded-xl md:w-[150px]" :src="'/storage/' + worker.photo" alt="Image Description">
<div class="grow"> <div class="grow">