Skip to content

Commit

Permalink
fix: remove nuxt image where it doesnt work
Browse files Browse the repository at this point in the history
Because of its dynamic nature
  • Loading branch information
AlejandroAkbal committed Dec 19, 2023
1 parent 0fc3018 commit da2e168
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions components/pages/home/FeaturedTags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
>
<figure>
<!-- Fix(rounded borders): add the same rounded borders that the parent has -->
<NuxtImg
<img
:alt="'Featured tag: ' + tag.name"
:src="getRandomImage(tag.images)"
:src="tag.images[0]"
class="h-auto w-full rounded-t-md"
loading="lazy"
style="aspect-ratio: 800/1200"
Expand Down
6 changes: 3 additions & 3 deletions components/pages/posts/navigation/DomainSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
<!-- Select -->
<ListboxButton
:class="[props.compact ? 'flex w-auto items-stretch !rounded-full !p-2.5' : 'w-56']"
class="hover:hover-text-util focus-visible:focus-outline-util hover:hover-bg-util relative cursor-default rounded-md py-1.5 pl-3 pr-10 text-left ring-1 ring-inset ring-base-0/20 bg-transparent sm:text-sm sm:leading-6"
class="hover:hover-text-util focus-visible:focus-outline-util hover:hover-bg-util relative cursor-default rounded-md bg-transparent py-1.5 pl-3 pr-10 text-left ring-1 ring-inset ring-base-0/20 sm:text-sm sm:leading-6"
v-bind="$attrs"
>
<span class="flex items-center">
<NuxtImg
<img
:src="`https://www.google.com/s2/favicons?domain=${props.modelValue.domain}&sz=128`"
alt="Favicon"
class="h-5 w-5 flex-shrink-0 rounded"
Expand Down Expand Up @@ -101,7 +101,7 @@
class="relative cursor-default select-none py-2 pl-3 pr-14"
>
<div class="flex items-center">
<NuxtImg
<img
:src="`https://www.google.com/s2/favicons?domain=${booru.domain}&sz=128`"
alt="Favicon"
class="h-5 w-5 flex-shrink-0 rounded"
Expand Down
2 changes: 1 addition & 1 deletion components/pages/posts/post/PostMedia.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
<!-- Image -->
<template v-else-if="isImage">
<!-- Fix(rounded borders): add the same rounded borders that the parent has -->
<NuxtImg
<img
:alt="mediaAlt"
:class="[mediaHasLoaded ? 'opacity-100' : 'opacity-0']"
:height="mediaSrcHeight"
Expand Down
6 changes: 3 additions & 3 deletions components/pages/posts/post/PostSource.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
class="group flex w-full items-center px-4 py-2 text-sm"
target="_blank"
>
<NuxtImg
<img
:src="`https://www.google.com/s2/favicons?domain=${getHostnameFromUrl(source)}&sz=128`"
alt="Favicon"
class="mr-3 h-5 w-5 flex-shrink-0 rounded"
Expand Down Expand Up @@ -162,7 +162,7 @@
type="button"
@click="openSourceFinder(service.link)"
>
<NuxtImg
<img
:src="`https://www.google.com/s2/favicons?domain=${getHostnameFromUrl(service.link)}&sz=128`"
alt="Favicon"
class="mr-3 h-5 w-5 flex-shrink-0 rounded"
Expand All @@ -189,7 +189,7 @@
type="button"
@click="openSourceFinder(service.link)"
>
<NuxtImg
<img
:src="`https://www.google.com/s2/favicons?domain=${getHostnameFromUrl(service.link)}&sz=128`"
alt="Favicon"
class="mr-3 h-5 w-5 flex-shrink-0 rounded"
Expand Down
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@
:href="featuredDomain.path"
class="focus-visible:focus-outline-util hover:hover-text-util hover:hover-bg-util flex items-center gap-2 rounded-md px-2"
>
<NuxtImg
<img
:src="`https://www.google.com/s2/favicons?domain=${featuredDomain.domain}&sz=128`"
alt="Favicon"
class="h-5 w-5 rounded"
Expand Down
2 changes: 1 addition & 1 deletion pages/premium/additional-boorus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
</div>

<!-- Favicon -->
<NuxtImg
<img
:src="`https://www.google.com/s2/favicons?domain=${booru.domain}&sz=128`"
alt="Favicon"
class="h-5 w-5 flex-shrink-0 rounded"
Expand Down

0 comments on commit da2e168

Please sign in to comment.