If click ellipsis-horizontal button, dropdown is hidden into the table - dropdown

I wrote the code in Tailwindcss and Alpine js. If I click ellipsis-horizontal button, dropdown is hidden into the table. I adjust the Z index also but it also hidden into the table. I want to show that dropdown above the table.
https://codepen.io/rskelaa/pen/xxJEdrm/
<div class="flex flex-col border-b">
<div class="z-10 -my-2 overflow-x-auto md:overflow-x-auto sm:-mx-6 lg:-mx-8">
<div class="inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8">
<div class="overflow-hidden border-b border-gray-200 shadow sm:rounded-lg">
<table class="relative min-w-full divide-y divide-gray-200 table-fixed">
<thead class="bg-blue-600">
<tr>
<th scope="col"
class="px-4 py-3 font-bold tracking-wider text-left text-gray-100 uppercase">
<span class="text-base text-gray-900">
<input class="w-4 h-4 border border-white" type="checkbox"
name="" id="">
</span>
</th>
<th scope="col"
class="px-4 py-3 font-bold tracking-wider text-left text-gray-100 uppercase">
Name
</th>
<th scope="col"
class="px-4 py-3 font-bold tracking-wider text-left text-gray-100 uppercase">
Paid Days
</th>
<th scope="col"
class="px-4 py-3 font-bold tracking-wider text-left text-gray-100 uppercase">
Net Pay
</th>
<th scope="col"
class="px-4 py-3 font-bold tracking-wider text-left text-gray-100 uppercase">
Taxes
</th>
<th scope="col"
class="px-4 py-3 font-bold tracking-wider text-left text-gray-100 uppercase">
Gross Pay
</th>
<th scope="col"
class="px-4 py-3 font-bold tracking-wider text-left text-gray-100 uppercase">
Action
</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr class="">
<td class="px-4 py-4 whitespace-nowrap">
<span class="text-base text-gray-900">
<input class="w-4 h-4 border border-white" type="checkbox"
name="" id="">
</span>
</td>
<td class="px-4 py-4 whitespace-nowrap">
<div>
<a href="employee-detail.html"
class="font-semibold text-blue-600">Elavarasan</a>
<p class="text-sm text-gray-600">67525165</p>
</div>
</td>
<td class="px-4 py-4 whitespace-nowrap">
<span class="text-base text-gray-900">
30
</span>
</td>
<td class="px-4 py-4 whitespace-nowrap">
<span class="text-base text-gray-900">
<span>₹</span> 15000
</span>
</td>
<td class="px-4 py-4 whitespace-nowrap">
<span class="text-base text-gray-900">
<span>₹</span> 3000
</span>
</td>
<td class="px-4 py-4 whitespace-nowrap">
<span class="text-base text-gray-900">
<span>₹</span> 18000
</span>
</td>
<td class="px-4 py-4 whitespace-nowrap">
<div class="px-2 text-gray-600 " x-data="{ isOpen: false }">
<button #click="isOpen = !isOpen"
#keydown.escape="isOpen = false"
class="flex items-center focus:outline-none">
<svg xmlns="http://www.w3.org/2000/svg" fill="none"
viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round"
d="M6.75 12a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM12.75 12a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM18.75 12a.75.75 0 11-1.5 0 .75.75 0 011.5 0z" />
</svg>
</button>
<ul x-show="isOpen" #click.away="isOpen = false"
class="absolute right-0 z-50 py-1 mt-2 overflow-hidden font-normal bg-white border rounded shadow w-72">
<li class="group hover:bg-indigo-100">
<a href="my-account.html"
class="flex items-center px-3 py-3 group-hover:text-indigo-800">
<svg fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24" width="24" height="24"
class="mr-3 text-gray-600 text-blue-600 group-hover:text-indigo-800">
<path
d="M12 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10zm0-2a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm9 11a1 1 0 0 1-2 0v-2a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v2a1 1 0 0 1-2 0v-2a5 5 0 0 1 5-5h8a5 5 0 0 1 5 5v2z"
class="heroicon-ui"></path>
</svg>
My Account
</a>
</li>
<li class="group hover:bg-indigo-100">
<a href="settings.html"
class="flex items-center px-3 py-3 group-hover:text-indigo-800">
<svg xmlns="http://www.w3.org/2000/svg"
class="w-6 h-6 mr-3 text-gray-600"
fill="none" viewBox="0 0 24 24"
stroke="currentColor" stroke-width="2">
<path stroke-linecap="round"
stroke-linejoin="round"
d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z">
</path>
<path stroke-linecap="round"
stroke-linejoin="round"
d="M15 12a3 3 0 11-6 0 3 3 0 016 0z">
</path>
</svg>
Settings
</a>
</li>
<li class="border-t group hover:bg-indigo-100">
<a href="logout.html"
class="flex items-center px-3 py-3 group-hover:text-indigo-800">
<svg fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
width="24" height="24" viewBox="0 0 24 24"
class="mr-3 text-gray-600 text-blue-600 group-hover:text-indigo-800">
<path d="M0 0h24v24H0z" fill="none"></path>
<path
d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z">
</path>
</svg>Sign out
</a>
</li>
</ul>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="flex justify-center mt-4">
<nav class="relative z-0 inline-flex -space-x-px shadow-sm" aria-label="Pagination">
<a href="#"
class="relative inline-flex items-center px-2 py-2 text-base font-medium text-gray-500 bg-white border border-gray-300 rounded-l-md hover:bg-indigo-100">
<span class="sr-only">Previous</span>
<!-- Heroicon name: chevron-left -->
<svg class="w-5 h-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"
fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd"
d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z"
clip-rule="evenodd"></path>
</svg>
</a>
<a href="#"
class="relative inline-flex items-center px-4 py-2 text-base font-medium text-gray-700 bg-white border border-gray-300 hover:bg-indigo-100">
1
</a>
<a href="#"
class="relative inline-flex items-center px-4 py-2 text-base font-medium text-gray-700 bg-white border border-gray-300 hover:bg-indigo-100">
2
</a>
<a href="#"
class="relative items-center hidden px-4 py-2 text-base font-medium text-gray-700 bg-white border border-gray-300 md:inline-flex hover:bg-indigo-100">
3
</a>
<a href="#"
class="relative inline-flex items-center px-4 py-2 text-base font-medium text-gray-700 bg-white border border-gray-300 hover:bg-indigo-100">
4
</a>
<a href="#"
class="relative inline-flex items-center px-4 py-2 text-base font-medium text-gray-700 bg-white border border-gray-300 hover:bg-indigo-100">
5
</a>
<a href="#"
class="relative inline-flex items-center px-2 py-2 text-base font-medium text-gray-500 bg-white border border-gray-300 rounded-r-md hover:bg-indigo-100">
<span class="sr-only">Next</span>
<!-- Heroicon name: chevron-right -->
<svg class="w-5 h-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"
fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd"
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
clip-rule="evenodd"></path>
</svg>
</a>
</nav>
</div>
</div>
Rectify this code, I m looking dropdown to above the table.

Related

I'm trying to use a button to switch between a scrollable table and the entire table in vue 3 js

I'm new to Vue and have been using Vue 3 along with Tailwind css on a intro project. I am trying to use two v-if's along with a click button to switch between the tables, but it is only showing the scrollable table, and when I click the button it doesn't show anything.
This is my data:
<template>
<div class="px-4 sm:px-6 lg:px-8">
<div class="sm:items-center">
<div class="sm:flex-none">
<h1 class="text-xl font-semibold text-gray-900 text-center">Test</h1>
<p class="mt-2 text-sm text-gray-700 text-center">Dummy Data</p>
<div class="flex justify-center mt-6">
<button #click="toggleList" type="button" class="inline-flex items-center justify-center rounded-md border border-transparent bg-blue-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 sm:w-auto">Toggle List</button>
</div>
</div>
</div>
<br>
<div v-if="listIsVisible">
<div class='flex items-center justify-center'>
<div class='h-96 w-96 overflow-y-scroll flex justify-center'>
<table class='w-50 shadow-lg bg-white border-separate'>
<thead>
<tr class='bg-gray-100'>
<th class='w-20 px-4 py-2 bg-blue-600 text-white'>Column 1</th>
<th class='px-4 py-2 bg-blue-600 text-white'>Column 2</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-200 bg-white">
<tr v-for="dummy in workflow" :key="dummy.contract">
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm text-black sm:pl-6 text-center">{{ dummy.contract }}</td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-black text-center">{{ dummy.spend }}</td>
</tr>
</tbody>
</table>
</div>
</div>
<div v-if="!listIsVisible">
<div class='flex items-center justify-center'>
<div class='overflow-y-scroll flex justify-center'>
<table class='w-50 shadow-lg bg-white border-separate'>
<thead>
<tr class='bg-gray-100'>
<th class='w-20 px-4 py-2 bg-blue-600 text-white'>Contract</th>
<th class='px-4 py-2 bg-blue-600 text-white'>Spend</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-200 bg-white">
<tr v-for="dummy in raft" :key="dummy.contract">
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm text-black sm:pl-6 text-center">{{ dummy.contract }}</td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-black text-center">{{ dummy.spend }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</template>
<script setup>
import { ref } from 'vue';
const listIsVisible = ref(false);
function toggleList() {
listIsVisible.value = !listIsVisible.value;
}

Tailwind css -> table height responsiv

I finally decided to seek help from people who will be more knowledgeable than me with this problem..
I have a table, very simple, and I would like this one to take up all the remaining space on the page, knowing that before it there is a list of inputs..
I tried several tricks, but after several hours I think you'll find the solution pretty quickly...^^
Main function :
export default function Interventions(){
return (
<div className="dark:bg-slate-800 px-4 sm:px-6 lg:px-8">
<InterventionSearchInput/>
<InterventionsTable/>
</div>
)
}
InterventionSearchInput :
export function InterventionSearchInput(props){
return(
<div className="text-center space-y-3 mt-4 mb-4">
<div className="space-x-2 flex justify-center" style={{flexFlow:'row wrap'}}>
<input
type="text"
name="id_intervention"
id="id_intervention"
placeholder="N° d'intervention"
className="max-w-[140px] mt-1 border border-gray-300 dark:border-gray-500 dark:bg-slate-700 dark:text-gray-300 dark:placeholder-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:border-indigo-500 sm:text-sm hover:bg-indigo-50 dark:hover:bg-slate-600"
/>
<input
type="text"
name="idInterne"
id="idInterne"
placeholder="Id Interne"
className="max-w-[140px] mt-1 border border-gray-300 dark:border-gray-500 dark:bg-slate-700 dark:text-gray-300 dark:placeholder-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:border-indigo-500 sm:text-sm hover:bg-indigo-50 dark:hover:bg-slate-600"
/>
<input
type="text"
name="IdTicket"
id="IdTicket"
placeholder="Id Ticket"
className="max-w-[140px] mt-1 border border-gray-300 dark:border-gray-500 dark:bg-slate-700 dark:text-gray-300 dark:placeholder-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:border-indigo-500 sm:text-sm hover:bg-indigo-50 dark:hover:bg-slate-600"
/>
<input
type="text"
name="site"
id="site"
placeholder="Site"
className="max-w-[140px] mt-1 border border-gray-300 dark:border-gray-500 dark:bg-slate-700 dark:text-gray-300 dark:placeholder-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:border-indigo-500 sm:text-sm hover:bg-indigo-50 dark:hover:bg-slate-600"
/>
<input
type="date"
name="dateStart"
id="dateStart"
className="mt-1 border border-gray-300 dark:border-gray-500 dark:bg-slate-700 dark:text-gray-300 dark:placeholder-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:border-indigo-500 sm:text-sm hover:bg-indigo-50 dark:hover:bg-slate-600"
/>
<input
type="date"
name="dateEnd"
id="dateEnd"
className="mt-1 border border-gray-300 dark:border-gray-500 dark:bg-slate-700 dark:text-gray-300 dark:placeholder-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:border-indigo-500 sm:text-sm hover:bg-indigo-50 dark:hover:bg-slate-600"
/>
<StatutListSearch setStatutSearch={props.setStatutSearch} statutSearch={props.statutSearch} setStatutSearchId={props.setStatutSearchId}/>
<button
onClick={() => csvInter()}
disabled={props.loaderCSV}
className="inline-block px-4 py-2 text-xs font-medium text-center text-yellow-500 uppercase transition bg-transparent border-2 border-yellow-500 rounded shadow ripple hover:shadow-lg hover:bg-yellow-100 focus:outline-none"
>
{props.loaderCSV && (
<svg role="status"
className="inline w-4 h-4 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-yellow-400"
viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"
fill="currentColor"/>
<path
d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"
fill="currentFill"/>
</svg>
)}
{props.loaderCSV && <span>CSV en cours de création</span>}
{!props.loaderCSV && <span>CSV</span>}
</button>
</div>
</div>
)
}
InterventionsTable :
export function InterventionsTable(props){
return(
loading ?
<LoaderTable type="spin" color="#00b0f0"/>
:
<div className="dark:bg-slate-800 flex flex-col">
<div className="-my-2 -mx-4 overflow-x-auto sm:-mx-6 lg:-mx-8">
<div className="inline-block min-w-full py-2 align-middle md:px-6 lg:px-8">
<div onScroll={handleScroll}
className="shadow ring-1 ring-black ring-opacity-5 md:rounded-lg overflow-y-scroll Xsm:max-h-[50vh] sm:max-h-[60vh] md:max-h-[65vh] lg:max-h-[70vh] xl:max-h-[75vh] 2xl:max-h-[85vh] xxl:max-h-[89vh]">
<table className="min-w-full divide-y divide-gray-300 dark:divide-gray-500">
<thead className="bg-gray-50 sticky top-0">
<tr className="divide-x divide-gray-200 dark:divide-gray-500">
<th scope="col"
className="dark:bg-slate-700 dark:text-gray-300 py-3.5 pl-4 pr-4 text-left text-xs font-semibold text-gray-900">
<a href="#"
onClick={() => {
orderID === 'asc' ?
changeOrder('desc', 'tri_id_inter_listing')
:
changeOrder('asc', 'tri_id_inter_listing')
}}
className="group inline-flex">
Id Interne
<span
className="ml-2 flex-none rounded bg-gray-200 text-gray-900 group-hover:bg-gray-300">
{
orderID === 'asc' ?
<ChevronDownIcon className="h-5 w-5" aria-hidden="true"/>
:
<ChevronUpIcon className="h-5 w-5" aria-hidden="true"/>
}
</span>
</a>
</th>
<th scope="col"
className="dark:bg-slate-700 dark:text-gray-300 py-3.5 pl-4 pr-4 text-left text-xs font-semibold text-gray-900">
<a href="#"
onClick={() => {
orderIDInterne === 'asc' ?
changeOrder('desc', 'tri_id_client')
:
changeOrder('asc', 'tri_id_client')
}}
className="group inline-flex">
Id Client
<span
className="ml-2 flex-none rounded bg-gray-200 text-gray-900 group-hover:bg-gray-300">
{
orderIDInterne === 'asc' ?
<ChevronDownIcon className="h-5 w-5" aria-hidden="true"/>
:
<ChevronUpIcon className="h-5 w-5" aria-hidden="true"/>
}
</span>
</a>
</th>
<th scope="col"
className="dark:bg-slate-700 dark:text-gray-300 py-3.5 pl-4 pr-4 text-left text-xs font-semibold text-gray-900">
<a href="#"
onClick={() => {
orderDate === 'asc' ?
changeOrder('desc', 'tri_date_h_rdv')
:
changeOrder('asc', 'tri_date_h_rdv')
}}
className="group inline-flex">
Date RDV
<span
className="ml-2 flex-none rounded bg-gray-200 text-gray-900 group-hover:bg-gray-300">
{
orderDate === 'asc' ?
<ChevronDownIcon className="h-5 w-5" aria-hidden="true"/>
:
<ChevronUpIcon className="h-5 w-5" aria-hidden="true"/>
}
</span>
</a>
</th>
<th scope="col"
className="dark:bg-slate-700 dark:text-gray-300 py-3.5 pl-4 pr-4 text-left text-xs font-semibold text-gray-900">
<a href="#"
onClick={() => {
orderTech === 'asc' ?
changeOrder('desc', 'tri_technician')
:
changeOrder('asc', 'tri_technician')
}}
className="group inline-flex">
Partenaire
<span
className="ml-2 flex-none rounded bg-gray-200 text-gray-900 group-hover:bg-gray-300">
{
orderTech === 'asc' ?
<ChevronDownIcon className="h-5 w-5" aria-hidden="true"/>
:
<ChevronUpIcon className="h-5 w-5" aria-hidden="true"/>
}
</span>
</a>
</th>
<th scope="col"
className="dark:bg-slate-700 dark:text-gray-300 py-3.5 pl-4 pr-4 text-left text-xs font-semibold text-gray-900">
<a href="#"
onClick={() => {
orderSite === 'asc' ?
changeOrder('desc', 'tri_site')
:
changeOrder('asc', 'tri_site')
}}
className="group inline-flex">
Site
<span
className="ml-2 flex-none rounded bg-gray-200 text-gray-900 group-hover:bg-gray-300">
{
orderSite === 'asc' ?
<ChevronDownIcon className="h-5 w-5" aria-hidden="true"/>
:
<ChevronUpIcon className="h-5 w-5" aria-hidden="true"/>
}
</span>
</a>
</th>
<th scope="col"
className="dark:bg-slate-700 dark:text-gray-300 py-3.5 pl-4 pr-4 text-left text-xs font-semibold text-gray-900">
<a href="#"
onClick={() => {
orderAdresse === 'asc' ?
changeOrder('desc', 'tri_adresse')
:
changeOrder('asc', 'tri_adresse')
}}
className="group inline-flex">
Adresse
<span
className="ml-2 flex-none rounded bg-gray-200 text-gray-900 group-hover:bg-gray-300">
{
orderAdresse === 'asc' ?
<ChevronDownIcon className="h-5 w-5" aria-hidden="true"/>
:
<ChevronUpIcon className="h-5 w-5" aria-hidden="true"/>
}
</span>
</a>
</th>
<th scope="col"
className="dark:bg-slate-700 dark:text-gray-300 py-3.5 pl-4 pr-4 text-left text-xs font-semibold text-gray-900">
<a href="#"
onClick={() => {
orderVille === 'asc' ?
changeOrder('desc', 'tri_ville')
:
changeOrder('asc', 'tri_ville')
}}
className="group inline-flex">
Ville
<span
className="ml-2 flex-none rounded bg-gray-200 text-gray-900 group-hover:bg-gray-300">
{
orderVille === 'asc' ?
<ChevronDownIcon className="h-5 w-5" aria-hidden="true"/>
:
<ChevronUpIcon className="h-5 w-5" aria-hidden="true"/>
}
</span>
</a>
</th>
<th scope="col"
className="dark:bg-slate-700 dark:text-gray-300 py-3.5 pl-4 pr-4 text-left text-xs font-semibold text-gray-900">
<a href="#"
onClick={() => {
orderCP === 'asc' ?
changeOrder('desc', 'tri_cp')
:
changeOrder('asc', 'tri_cp')
}}
className="group inline-flex">
CP
<span
className="ml-2 flex-none rounded bg-gray-200 text-gray-900 group-hover:bg-gray-300">
{
orderCP === 'asc' ?
<ChevronDownIcon className="h-5 w-5" aria-hidden="true"/>
:
<ChevronUpIcon className="h-5 w-5" aria-hidden="true"/>
}
</span>
</a>
</th>
<th scope="col"
className="dark:bg-slate-700 dark:text-gray-300 py-3.5 pl-4 pr-4 text-left text-xs font-semibold text-gray-900">
<a href="#"
className="group inline-flex">
Dossier de clôture
</a>
</th>
<th scope="col"
className="dark:bg-slate-700 dark:text-gray-300 py-3.5 pl-4 pr-4 text-left text-xs font-semibold text-gray-900">
<a href="#"
onClick={() => {
orderStatut === 'asc' ?
changeOrder('desc', 'tri_statut')
:
changeOrder('asc', 'tri_statut')
}}
className="group inline-flex">
Statut
<span
className="ml-2 flex-none rounded bg-gray-200 text-gray-900 group-hover:bg-gray-300">
{
orderStatut === 'asc' ?
<ChevronDownIcon className="h-5 w-5" aria-hidden="true"/>
:
<ChevronUpIcon className="h-5 w-5" aria-hidden="true"/>
}
</span>
</a>
</th>
</tr>
</thead>
<tbody
className="divide-y divide-gray-200 bg-white h-48 max-h-screen overflow-y-scroll dark:bg-slate-700 dark:divide-gray-500">
{
items.map((c, index) => (
<tr onClick={(e) => {
e.preventDefault()
e.stopPropagation()
props.setShowMTicket(!props.showMTicket)
props.setIdInter(c.id)
}}
key={index}
className="divide-x divide-gray-200 dark:divide-gray-500 hover:bg-sky-100 dark:hover:bg-slate-600">
<td className="whitespace-wrap py-4 pl-4 pr-4 text-xs font-medium text-gray-900 cursor-pointer dark:text-gray-300">{c.id}</td>
<td className="whitespace-wrap py-4 pl-4 pr-4 text-xs text-gray-500 max-w-xs cursor-pointer dark:text-gray-300">{c.num_inter_apporteur}</td>
<td className="whitespace-wrap py-4 pl-4 pr-4 text-xs text-gray-500 cursor-pointer dark:text-gray-300">{c.planning_date_begin}</td>
<td className="whitespace-wrap py-4 pl-4 pr-4 text-xs font-medium text-gray-500 cursor-pointer dark:text-gray-300">{c.prenomTECH} {c.nomTECH}</td>
<td className="whitespace-wrap py-4 pl-4 pr-4 text-xs text-gray-500 cursor-pointer dark:text-gray-300">{c.site}</td>
<td className="whitespace-wrap py-4 pl-4 pr-4 text-xs text-gray-500 cursor-pointer dark:text-gray-300">{c.adresse}</td>
<td className="whitespace-wrap py-4 pl-4 pr-4 text-xs text-gray-500 cursor-pointer dark:text-gray-300">{c.ville}</td>
<td className="whitespace-wrap py-4 pl-4 pr-4 text-xs text-gray-500 cursor-pointer dark:text-gray-300">{c.cp_site}</td>
<td className="whitespace-wrap py-4 pl-4 pr-4 text-xs text-gray-500 cursor-pointer">
{
props.isLoadingDL ?
<Loader type="spin" color="orange"/>
:
<>
<svg xmlns="http://www.w3.org/2000/svg"
className="h-6 w-6 m-auto" fill="none"
viewBox="0 0 24 24" stroke="orange"
stroke-width="2" data-tip data-for='duplicata'
onClick={(e) => {
e.preventDefault()
e.stopPropagation()
props.setIsLoadingDL(true)
props.dlFolderCloture(c.id, c.login_intervention);
}}>
<path stroke-linecap="round" stroke-linejoin="round"
d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"/>
</svg>
<ReactTooltip id='duplicata' type='light'
effect='solid'>
<span>Télécharger le dossier de clôture</span>
</ReactTooltip>
</>
}
</td>
<td className="whitespace-wrap py-4 pl-4 pr-4 text-xs text-gray-500 cursor-pointer dark:text-gray-300 text-center">
<span className={
c.statut === "11" || c.statut === "4" ?
"inline-block py-1 px-2 dark:text-gray-300 border-2 border-green-500 rounded-full"
:
c.statut === "5" ?
"inline-block py-1 px-2 dark:text-gray-300 border-2 border-violet-500 rounded-full"
:
c.statut === "1" ?
"inline-block py-1 px-2 dark:text-gray-300 border-2 border-orange-500 rounded-full"
:
"inline-block py-1 px-2 dark:text-gray-300 border-2 border-red-500 rounded-full"
}>{c.libelle_statut}</span>
</td>
</tr>
))
}
</tbody>
</table>
</div>
<div
className="hidden md:flex md:w-48 md:flex-col md:fixed fixed bottom-0 left-0 min-w-12rem">
<div className="max-w-7xl">
<div className="p-2 bg-blue-600 shadow-lg sm:p-3">
<div className="flex items-center justify-center flex-wrap">
<div
className="order-3 mt-2 flex-shrink-0 w-full sm:order-2 sm:mt-0 sm:w-auto font-medium text-white">
<p>Interventions : {props.nbInter}</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
)
}
I removed all props and functions, only the css is important for the problem..
So to summarize, how to make the table take all the remaining height and keep the ratio when the page resizes, because currently when I resize, the "end" of the table is no longer visible..
I don't know if I was clear enough.
Image :
[Table without resize][1]
[Table after resize][2]
[1]: https://i.stack.imgur.com/Yjh3E.png
[2]: https://i.stack.imgur.com/A5DTl.png

Modal is getting the last value from my table

I created a modal with bootstrap, in react, but when it opens, it takes the last value from my table(sql). Does anyone know why he does this, and how I fix it
this is my code with the table and modal
When I open my MODAL the information there is wrong, it is taking the last item in my table.
this classific is each field of my table
return (
<React.Fragment key={classific.ID}>
<tbody className="bg-white divide-y divide-gray-200">
<tr>
<td className="px-2 py-4 whitespace-nowrap">
<div className="flex items-center">
<div className="ml-4">
<div className="text-sm font-medium text-gray-900">
{classific.ID}
</div>
</div>
</div>
</td>
<td className="px-6 py-4 whitespace-nowrap">
<div className="font-bold text-sm text-gray-900">
{classific.DS_Classificacao}
</div>
</td>
<td className="px-9 py-4 whitespace-nowrap">
<div
className={
classific.Status === true
? 'inline-flex items-center px-2.5 py-0.5 rounded-md text-sm font-medium bg-green-100 text-green-800'
: 'inline-flex items-center px-2.5 py-0.5 rounded-md text-sm font-medium bg-red-100 text-red-800'
}
>
{classific.Status === true ? 'Ativo' : 'Inativo'}
</div>
</td>
<td className="content_td">
<button
onClick={e => EditForm(classific.ID, e)}
className="text-gray-400 hover:text-gray-100 mx-2"
>
<span className="sr-only">Close panel</span>
<PencilIcon
className="h-6 w-6"
aria-hidden="true"
onClick={handleShowE}
/>
</button>
<button className="text-gray-400 hover:text-gray-100 ml-2">
<span className="sr-only">Close panel</span>
<TrashIcon
className="h-6 w-6"
aria-hidden="true"
**Here is where I press for my modal to open**
onClick={handleShowD}
/>
</button>
</td>
</tr>
</tbody>
**The information inside the modal is wrong**
<Modal
show={showD}
onHide={handleCloseD}
backdrop="static"
keyboard={false}
>
<Modal.Header>
<Modal.Title>
Deletar <b>{classific.DS_Classificacao}</b>
</Modal.Title>
</Modal.Header>
<Modal.Body>
Tem certeza que deseja deletar
<b> {classific.DS_Classificacao}</b> ? Essa ação é
irreversivel.
</Modal.Body>
<Modal.Footer>
<button
type="button"
className="inline-flex items-center px-2.5 py-1.5 border border-gray-300 shadow-sm text-xs font-medium rounded text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"
onClick={handleCloseD}
>
Cancelar
</button>
<button
type="button"
className="inline-flex items-center px-2.5 py-1.5 border border-gray-300 shadow-sm text-xs font-medium rounded text-red-700 bg-red hover:bg-red-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500"
onClick={e => deleteForm(classific.ID, e)}
>
Deletar
</button>
</Modal.Footer>
</Modal>
<Modal
show={showE}
onHide={handleCloseE}
backdrop="static"
keyboard={false}
>
<Modal.Header>
<Modal.Title>Editar Classificação</Modal.Title>
</Modal.Header>
<Modal.Body>
{/* <ModalEdit id={classific.ID}></ModalEdit> */}
</Modal.Body>
<Modal.Footer>
<button
type="button"
className="inline-flex items-center px-2.5 py-1.5 border border-transparent text-xs font-medium rounded shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"
onClick={handleCloseE}
>
Cancelar
</button>
</Modal.Footer>
</Modal>
</React.Fragment>
)
})}```

[Vue warn]: Error in render: "TypeError: Cannot read properties of undefined (reading 'length')" error when using datatables in vue

In my laravel vuejs application I have following vue to display some data inside a datatable .
For the better user experience, I have added a Show more option to load data.
<show-more :data-size="documents.length" increment-amount="5" >
<div slot-scope="{ showMore, showAmount }">
<div v-bind:class = "selectedForAction.count() === 0 ? 'h-15' : ''">
<action-bar :count="selectedForAction.count()">
<div slot="table-header" class="flex items-center justify-between bg-white border-certstyle-border border-b rounded-t py-4 px-10 w-full ">
<!--Course -->
<div class="flex items-center rounded-full w-22 overflow-hidden shadow-soft">
<selectable-all item="selectAll" :data="documents" #select="selectAll"></selectable-all>
</div>
<div class="flex flex-col items-left text-left w-10/12">
Document
</div>
<div class="w-74 text-left" item="validFor">
Valid until
</div>
<div class="w-1/12 text-center" item="status">
Validity
</div>
<div class="px-8 w-32">
</div>
<div class="px-8">
</div>
</div>
<button v-if="selectedForAction.count() === 1" #click="editSelectedDocument" class="flex items-center text-certstyle-titles text-sm mx-4" >
<span class="mr-1">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-edit-2"><path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path></svg>
</span>
<span class="font-bold">Edit</span>
</button>
<button #click="removeSelectedDocument" class="flex items-center text-certstyle-titles text-sm mx-4" >
<span class="mr-1">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x-square"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="9" x2="15" y2="15"></line><line x1="15" y1="9" x2="9" y2="15"></line></svg>
</span>
<span class="font-bold">Remove</span>
</button>
</action-bar>
</div>
<!--Certificates-->
<div v-if="documents[index] !== undefined" v-for="(i, index) in showAmount" class="flex items-center justify-between border-certstyle-border border-b px-10 py-1 hover:bg-certstyle-background-light transition-colors duration-150">
<!--Certificate institute image-->
<div class="flex items-center " item="certificatedChecked" >
<div class="relative">
<div class="rounded-full h-14 w-10 overflow-hidden shadow-soft pt-4">
<selectable
v-model="selectedForAction"
:item="documents[index].id"
:ref="documents[index].id"
></selectable>
</div>
</div>
</div>
<div class="flex flex-col items-left text-left w-10/12" item="certificate">
<span :title="documents[index].name" style="cursor: help;" class="text-certstyle-titles font-bold cursor-help">{{ documents[index].name }}</span>
</div>
<!--Certificate due date-->
<div class="w-74 text-left" item="validFor">
<p class="text-sm valid-until not-applicable" v-if="documents[index].is_valid_forever">{{ 'Indefinite'}}</p>
<p class="text-sm valid-until" v-else>{{ documents[index].expires_at_formatted }}</p>
</div>
<!-- Certificate status-->
<div class="w-48 text-center" item="status">
<status :status="documents[index].validity_status.toLowerCase()"></status>
</div>
<!--Download icon-->
<div class="cs--dashboard-employee-certificate-index--certificate-download-icon px-8" item="download">
<a v-if="documents[index].url !== null" :href="getDocumentDownloadLocation(documents[index].id)" class="text-certstyle-text-light">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-download"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg>
</a>
</div>
<!--Preview icon-->
<div class="cs--dashboard-employee-certificate-index--certificate-download-icon px-8" item="view">
<a v-if="documents[index].url !== null" target="_blank" :href="getDocumentPreviewLocation(documents[index].id)" class="text-certstyle-text-light">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>
</a>
</div>
<div class="w-0 flex justify-end">
<edit-documents-modal :document="documents[index]" :identifier="`editDocument${documents[index].id}`"></edit-documents-modal>
</div>
</div>
<div class="relative flex items-center justify-center">
<!--Show more button-->
<button class="absolute border focus:outline-none hover:bg-certstyle-orange bg-white border-certstyle-orange hover:text-white text-certstyle-orange font-bold text-sm rounded px-4 py-1 mt-32 " v-if="showAmount < documents.length" #click="showMore">
show more documents
</button>
</div>
</div>
</show-more>
Now the issue is, When I tried to run this, I get following console error and my data table is not getting displayed. Not even the headers...
[Vue warn]: Error in render: "TypeError: Cannot read properties of
undefined (reading 'length')"
Its better to use computed property to handle these situations
computed: {
getDocumentSize() {
return this.documents ? this.documents.length : 0;
}
}
and in template, do the below change
<show-more :data-size="getDocumentSize" increment-amount="5" >
....

Cannot get all HTML when using requests.get or webdriver.get

I am trying to scrape 100.0% from style attribute:
<div class="w-full mt-1 bg-white rounded-lg shadow">
<div class="py-1 bg-purple-900 rounded-lg" style="width: 100.0%"></div>
</div>
The page source response does not go this deep into the page, I have tried:
def ScrapePercents():
URL = "https://citystrides.com/cities/26013/search_striders?page=1"
page = requests.get(URL)
soup = BeautifulSoup(page.content, "html.parser")
results = soup.find("div", class_="flex flex-wrap space-y-4")
percents = results.find_all("div", class_="py-1 bg-purple-900 rounded-lg")
pl = []
for percent in percents:
cleantext = percent['style'].lstrip('width: ')
percent_neat = (cleantext.strip('%'))
percent_float = float(percent_neat)
pl.append(percent_float)
print("pl as it appends ", pl)
return pl
And
def Selenium():
print("shell for selenium")
pl = "shell for selenium percents"
driver = webdriver.Chrome("chromedriver.exe")
driver.get("https://citystrides.com/cities/26013/search_striders")
content = driver.page_source
soup = BeautifulSoup(content)
results = soup.find("div", class_="flex flex-wrap space-y-4")
return soup
The second code is set just to see whether the content includes the nested div. I'm struggling to work out how to get the nested div.
Using Selenium to extract the DIV content you need to induce WebDriverWait for the visibility_of_element_located() and you can use either of the following Locator Strategies:
Using CSS_SELECTOR:
driver.get("https://citystrides.com/cities/26013/search_striders")
print(WebDriverWait(driver, 20).until(EC.visibility_of_element_located((By.CSS_SELECTOR, ".flex.flex-wrap.space-y-4"))).get_attribute("innerHTML"))
Using XPATH:
driver.get("https://citystrides.com/cities/26013/search_striders")
print(WebDriverWait(driver, 20).until(EC.visibility_of_element_located((By.XPATH, "//div[#class='flex flex-wrap space-y-4']"))).get_attribute("innerHTML"))
Note : You have to add the following imports :
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
Console Output:
<div id="user_10277" class="w-full max-w-lg p-2 transition duration-150 rounded-lg shadow-md bg-gradient-to-br from-gray-50 to-gray-200">
<div class="flex-grow text-left">
<h2 class="overflow-hidden text-sm font-bold text-gray-900 truncate">Pedro Queiroz</h2>
<div class="text-xs uppercase">5233 streets</div>
</div>
</div>
<div class="flex justify-between mt-5 text-sm">
<div>
<a data-turbo-frame="_top" class="purple-button flex items-center" href="/users/10277/map">
<svg class="float-left w-6 h-6 mr-1" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewBox="0 0 24 24" stroke="currentColor"><path d="M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"></path></svg>
LifeMap
</a> </div>
<div title="Pedro Queiroz is a Supporter">💫</div>
<div>
<a data-turbo-frame="_top" class="purple-button flex items-center" href="/users/10277">
<svg class="float-left w-6 h-6 mr-1" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewBox="0 0 24 24" stroke="currentColor"><path d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg>
Profile
</a> </div>
</div>
</div>
<div id="user_18066" class="w-full max-w-lg p-2 transition duration-150 rounded-lg shadow-md bg-gradient-to-br from-gray-50 to-gray-200">
<div class="flex">
<img loading="lazy" class="flex-none text-xs rounded-full h-16 w-16 mr-2" alt="" src="https://www.gravatar.com/avatar/9f78d924bbc876075b775da81282d6d7?d=https%3A%2F%2Fcitystrides.com%2Fassets%2Flogo_menu-4dc9d8eddd18724d2784165652c6ca07b47443b447fba88a84a4adc856d3605b.png">
<div class="flex-grow text-left">
<h2 class="overflow-hidden text-sm font-bold text-gray-900 truncate">Ali G</h2>
<div class="text-xs uppercase">2848 streets</div>
</div>
</div>
<div class="flex justify-between mt-5 text-sm">
<div>
<a data-turbo-frame="_top" class="purple-button flex items-center" href="/users/18066/map">
<svg class="float-left w-6 h-6 mr-1" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewBox="0 0 24 24" stroke="currentColor"><path d="M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"></path></svg>
LifeMap
</a> </div>
<div title="Ali G is a Supporter">💫</div>
<div>
<a data-turbo-frame="_top" class="purple-button flex items-center" href="/users/18066">
<svg class="float-left w-6 h-6 mr-1" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewBox="0 0 24 24" stroke="currentColor"><path d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg>
Profile
</a> </div>
</div>
</div>
<div id="user_24203" class="w-full max-w-lg p-2 transition duration-150 rounded-lg shadow-md bg-gradient-to-br from-gray-50 to-gray-200">
<div class="flex">
<img loading="lazy" class="flex-none text-xs rounded-full h-16 w-16 mr-2" alt="" src="https://www.gravatar.com/avatar/1359108e2ffc9fefe8876939f32a969f?d=https%3A%2F%2Fcitystrides.com%2Fassets%2Flogo_menu-4dc9d8eddd18724d2784165652c6ca07b47443b447fba88a84a4adc856d3605b.png">
<div class="flex-grow text-left">
<h2 class="overflow-hidden text-sm font-bold text-gray-900 truncate">Brad Windon</h2>
<div class="text-xs uppercase">2784 streets</div>
</div>
</div>
<div class="flex justify-between mt-5 text-sm">
<div>
<a data-turbo-frame="_top" class="purple-button flex items-center" href="/users/24203/map">
<svg class="float-left w-6 h-6 mr-1" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewBox="0 0 24 24" stroke="currentColor"><path d="M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"></path></svg>
LifeMap
</a> </div>
<div title="Brad Windon is a Supporter">💫</div>
<div>
<a data-turbo-frame="_top" class="purple-button flex items-center" href="/users/24203">
<svg class="float-left w-6 h-6 mr-1" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewBox="0 0 24 24" stroke="currentColor"><path d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg>
Profile
</a> </div>
</div>
</div>
<div id="user_37225" class="w-full max-w-lg p-2 transition duration-150 rounded-lg shadow-md bg-gradient-to-br from-gray-50 to-gray-200">
<div class="flex">
<img loading="lazy" class="flex-none text-xs rounded-full h-16 w-16 mr-2" alt="" src="https://www.gravatar.com/avatar/e4e29c4688468497e59a99a867d1d27e?d=https%3A%2F%2Fcitystrides.com%2Fassets%2Flogo_menu-4dc9d8eddd18724d2784165652c6ca07b47443b447fba88a84a4adc856d3605b.png">
<div class="flex-grow text-left">
<h2 class="overflow-hidden text-sm font-bold text-gray-900 truncate">Randy Adams</h2>
<div class="text-xs uppercase">3350 streets</div>
</div>
</div>
<div class="flex justify-between mt-5 text-sm">
<div>
<a data-turbo-frame="_top" class="purple-button flex items-center" href="/users/37225/map">
<svg class="float-left w-6 h-6 mr-1" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewBox="0 0 24 24" stroke="currentColor"><path d="M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"></path></svg>
LifeMap
</a> </div>
<div title="Randy Adams is a Supporter">💫</div>
<div>
<a data-turbo-frame="_top" class="purple-button flex items-center" href="/users/37225">
<svg class="float-left w-6 h-6 mr-1" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewBox="0 0 24 24" stroke="currentColor"><path d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg>
Profile
</a> </div>
</div>
</div>
<div id="user_29373" class="w-full max-w-lg p-2 transition duration-150 rounded-lg shadow-md bg-gradient-to-br from-gray-50 to-gray-200">
<div class="flex">
<img loading="lazy" class="flex-none text-xs rounded-full h-16 w-16 mr-2" alt="" src="https://www.gravatar.com/avatar/f372f7d189b34ee38d4304d34d0e92d8?d=https%3A%2F%2Fcitystrides.com%2Fassets%2Flogo_menu-4dc9d8eddd18724d2784165652c6ca07b47443b447fba88a84a4adc856d3605b.png">
<div class="flex-grow text-left">
<h2 class="overflow-hidden text-sm font-bold text-gray-900 truncate">Nudibranch Whisperer</h2>
<div class="text-xs uppercase">2451 streets</div>
</div>
</div>
<div class="flex justify-between mt-5 text-sm">
<div>
<a data-turbo-frame="_top" class="purple-button flex items-center" href="/users/29373/map">
<svg class="float-left w-6 h-6 mr-1" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewBox="0 0 24 24" stroke="currentColor"><path d="M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"></path></svg>
LifeMap
</a> </div>
<div title="Nudibranch Whisperer is a Supporter">💫</div>
<div>
<a data-turbo-frame="_top" class="purple-button flex items-center" href="/users/29373">
<svg class="float-left w-6 h-6 mr-1" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewBox="0 0 24 24" stroke="currentColor"><path d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg>
Profile
</a> </div>
</div>
</div>
<div id="user_39377" class="w-full max-w-lg p-2 transition duration-150 rounded-lg shadow-md bg-gradient-to-br from-gray-50 to-gray-200">
<div class="flex">
<img loading="lazy" class="flex-none text-xs rounded-full h-16 w-16 mr-2" alt="" src="https://www.gravatar.com/avatar/d22b9542672cb8c7fe062fa0d05663df?d=https%3A%2F%2Fcitystrides.com%2Fassets%2Flogo_menu-4dc9d8eddd18724d2784165652c6ca07b47443b447fba88a84a4adc856d3605b.png">
<div class="flex-grow text-left">
<h2 class="overflow-hidden text-sm font-bold text-gray-900 truncate">Nathan Moas</h2>
<div class="text-xs uppercase">2360 streets</div>
</div>
</div>
<div class="flex justify-between mt-5 text-sm">
<div>
<a data-turbo-frame="_top" class="purple-button flex items-center" href="/users/39377/map">
<svg class="float-left w-6 h-6 mr-1" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewBox="0 0 24 24" stroke="currentColor"><path d="M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"></path></svg>
LifeMap
</a> </div>
<div title="Nathan Moas is a Supporter">💫</div>
<div>
<a data-turbo-frame="_top" class="purple-button flex items-center" href="/users/39377">
<svg class="float-left w-6 h-6 mr-1" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewBox="0 0 24 24" stroke="currentColor"><path d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg>
Profile
</a> </div>
</div>
</div>
<div id="user_39306" class="w-full max-w-lg p-2 transition duration-150 rounded-lg shadow-md bg-gradient-to-br from-gray-50 to-gray-200">
<div class="flex">
<img loading="lazy" class="flex-none text-xs rounded-full h-16 w-16 mr-2" alt="" src="https://www.gravatar.com/avatar/bf78feece98a5aa399ffbc8167e195b0?d=https%3A%2F%2Fcitystrides.com%2Fassets%2Flogo_menu-4dc9d8eddd18724d2784165652c6ca07b47443b447fba88a84a4adc856d3605b.png">
<div class="flex-grow text-left">
<h2 class="overflow-hidden text-sm font-bold text-gray-900 truncate">Conrad Bajkowski</h2>
<div class="text-xs uppercase">1574 streets</div>
</div>
</div>
<div class="flex justify-between mt-5 text-sm">
<div>
<a data-turbo-frame="_top" class="purple-button flex items-center" href="/users/39306/map">
<svg class="float-left w-6 h-6 mr-1" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewBox="0 0 24 24" stroke="currentColor"><path d="M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"></path></svg>
LifeMap
</a> </div>
<div title="Conrad Bajkowski is a Supporter">💫</div>
<div>
<a data-turbo-frame="_top" class="purple-button flex items-center" href="/users/39306">
<svg class="float-left w-6 h-6 mr-1" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewBox="0 0 24 24" stroke="currentColor"><path d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg>
Profile
</a> </div>
</div>
</div>
<div class="w-full">
<div class="flow-root">
<div class="relative">
<div class="relative flex items-start space-x-3">
<div>
<div class="relative">
<div class="flex items-center justify-center w-8 h-8 bg-gray-100 rounded-full ring-8 ring-white">
<svg class="w-5 h-5 text-blue-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z" clip-rule="evenodd"></path>
</svg>
</div>
</div>
</div>
<div class="min-w-0 flex-1 py-1.5">
<div class="text-sm text-gray-500">
<span class="font-medium text-gray-900">A private Strider</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="w-full">
<div class="flow-root">
<div class="relative">
<div class="relative flex items-start space-x-3">
<div>
<div class="relative">
<div class="flex items-center justify-center w-8 h-8 bg-gray-100 rounded-full ring-8 ring-white">
<svg class="w-5 h-5 text-blue-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z" clip-rule="evenodd"></path>
</svg>
</div>
</div>
</div>
<div class="min-w-0 flex-1 py-1.5">
<div class="text-sm text-gray-500">
<span class="font-medium text-gray-900">A private Strider</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="w-full">
<div class="flow-root">
<div class="relative">
<div class="relative flex items-start space-x-3">
<div>
<div class="relative">
<div class="flex items-center justify-center w-8 h-8 bg-gray-100 rounded-full ring-8 ring-white">
<svg class="w-5 h-5 text-blue-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z" clip-rule="evenodd"></path>
</svg>
</div>
</div>
</div>
<div class="min-w-0 flex-1 py-1.5">
<div class="text-sm text-gray-500">
<span class="font-medium text-gray-900">A private Strider</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="user_31601" class="w-full max-w-lg p-2 transition duration-150 rounded-lg shadow-md bg-gradient-to-br from-gray-50 to-gray-200">
<div class="flex">
<img loading="lazy" class="flex-none text-xs rounded-full h-16 w-16 mr-2" alt="" src="https://www.gravatar.com/avatar/17a534745e70297382cc25b22903e611?d=https%3A%2F%2Fcitystrides.com%2Fassets%2Flogo_menu-4dc9d8eddd18724d2784165652c6ca07b47443b447fba88a84a4adc856d3605b.png">
<div class="flex-grow text-left">
<h2 class="overflow-hidden text-sm font-bold text-gray-900 truncate">Elliot Nolan</h2>
<div class="text-xs uppercase">1611 streets</div>
</div>
</div>
<div class="flex justify-between mt-5 text-sm">
<div>
<a data-turbo-frame="_top" class="purple-button flex items-center" href="/users/31601/map">
<svg class="float-left w-6 h-6 mr-1" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewBox="0 0 24 24" stroke="currentColor"><path d="M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"></path></svg>
LifeMap
</a> </div>
<div>
<a data-turbo-frame="_top" class="purple-button flex items-center" href="/users/31601">
<svg class="float-left w-6 h-6 mr-1" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewBox="0 0 24 24" stroke="currentColor"><path d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg>
Profile
</a> </div>
</div>
</div>
<div class="w-full">
<div class="flow-root">
<div class="relative">
<div class="relative flex items-start space-x-3">
<div>
<div class="relative">
<div class="flex items-center justify-center w-8 h-8 bg-gray-100 rounded-full ring-8 ring-white">
<svg class="w-5 h-5 text-blue-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z" clip-rule="evenodd"></path>
</svg>
</div>
</div>
</div>
<div class="min-w-0 flex-1 py-1.5">
<div class="text-sm text-gray-500">
<span class="font-medium text-gray-900">A private Strider</span>
</div>
</div>
</div>
</div>
</div>
</div>
the element/div you are looking for with class w-full and py-1 are actually not there in the source of the website, I just tried to inspect and could not find them,can you see them when you open that website on your browser?