Skip to content

Commit

Permalink
Update providers in cities, added tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
zmigroo committed Nov 16, 2023
1 parent 7ab22c4 commit fd9070d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/js/Shared/Components/City.vue
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ function toggleProvidersForm() {
<div v-for="provider in filteredSelectedCityProviders.slice(0, 4)" :key="provider.name"
:style="{ 'background-color': selectedCityProviders.includes(provider.name) ? provider.color : '' }"
:class="selectedCityProviders.includes(provider.name) ? 'border-zinc-600 drop-shadow-lg' : 'hidden'"
class="m-1 flex h-5 w-fit items-center justify-center rounded border border-zinc-300 bg-zinc-300 p-1 "
class="m-1 flex h-5 w-fit items-center justify-center rounded border border-zinc-300 bg-zinc-300 p-1 hover:scale-[2] transition-all hover:z-50"

Check warning on line 204 in resources/js/Shared/Components/City.vue

View workflow job for this annotation

GitHub Actions / Test & lint JS codebase

Invalid Tailwind CSS classnames order
>
<img class="w-5" :src="'/providers/' + provider.name.toLowerCase() + '.png'" alt="">
<img class="w-5" :src="'/providers/' + provider.name.toLowerCase() + '.png'" :title="provider.name" alt="">
</div>

<div v-if="selectedCityProviders.length > 4"
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Shared/Components/ProviderIcons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function getProviderColor(providerName) {
</script>

<template>
<div class="mb-2 mr-1 mt-4 flex w-fit flex-row-reverse flex-wrap items-center justify-end sm:mt-0 sm:justify-start">
<div class="mb-2 mr-3 mt-4 flex w-fit flex-row-reverse flex-wrap items-center justify-end sm:mt-0 sm:justify-start">
<div v-for="cityProvider in item.cityProviders" :key="cityProvider.provider_name">
<div :style="{ 'background-color': getProviderColor(cityProvider.provider_name) }"
class="m-1 flex h-7 w-fit shrink-0 items-center justify-center rounded-md border border-zinc-300 p-1 lg:h-8 hover:scale-150 transition-all"

Check warning on line 19 in resources/js/Shared/Components/ProviderIcons.vue

View workflow job for this annotation

GitHub Actions / Test & lint JS codebase

Invalid Tailwind CSS classnames order
Expand Down

0 comments on commit fd9070d

Please sign in to comment.